I guess, instead you could leave Auto Layout turned on, define proper Layout Constraints, assign them to IBOutlets in your view/controller and adjust them programmatically whenever needed. I didn't know how to do that half a year ago.
Thanks for the tip! I needed a way to render dynamic template names - not partials. It took me a while to understand, that you need to turn the true
in the call to a false
(or skip it altogether) to look up a template.
If the templates/partials exist in the conventional namespace, you can even simplify the call this way:
lookup_context.exists?(dynamic_template_name, _prefixes)
_prefixes
will return the context of the controller's inheritance chain.
Kudos for the details to Flackou, http://stackoverflow.com/a/16999991/214702
@koryteg The above solution teaches users the new slug URLs by always redirecting them to the slug URLs (like /answers/everything) when they used the id (such as /answers/42). So the old id URLs will never be made public by your own website. There's always that redirect.
Have you tried adding the parameters as <input hidden>?