I have a popover controller i instantiate in code and pass it it's contentViewController, and all that works great. The problem is LATER when the contentViewController might resize as a result of the messages label displaying an arbitrarily long list of strings.
The UILabel I'm referring to has the text ... 'Validation and Errors Message Box'
I'd like to be able to somehow configure the layout constraints so that when the user enters a value in the textbox, and then taps the accept button, that if I have any validation errors to present to them, I can do so by adding them to the label (which I have set up to accept multiple lines of data if needed), and when added, if they happen to require 5 lines of display, that the label will then push down the UITextField and the Accept/Cancel buttons so that it can display all the label content. Well, I've been able to do that, and the contentViewController resizes as expected. The problem is, the popover controller that contains it DOES NOT resize, so what happens is, my Accept/Cancel buttons get pushed off the bottom edge of the popover form so they aren't even accessible to the user.
Are there any constraints I can set up that will force the height of the popover controller to enlarge so that the UI controls under my 'Validation and Errors message box' aren't pushed off the bottom edge when there are multiple lines of validation text?
I'm creating the popoverController in code, so I'm assuming I'd need to do the contraint(s) in code as well.