Hi all,
I am trying to add a layout constraint to my container view programmatically by
putting the following code in the view controller (which I got and modified
from Apple's UIViewController docs):
-
[toolbar setTranslatesAutoresizingMaskIntoConstraints: NO];
id
Do you really have a space between V: and [toolbar]? I'd remove that.
On 30 Dec, 2013, at 2:28 pm, Donald Hall d...@appsandmore.com wrote:
Hi all,
I am trying to add a layout constraint to my container view programmatically
by putting the following code in the view controller (which I
Roland,
Thanks for the quick reply! Yes that was the problem. I just copied straight
from Apple's example. I guess they got it wrong. :-(
Unfortunately, this caused the toolbar to disappear on the iPad simulator. I'll
have to try another approach to getting the toolbar to not underlap the
That code would put the toolbar above the top layout guide by 20px, is that
what you want? I'd think you'd want to put it below the top layout guide else
it'll go off the top of the screen in some cases.
Take a look at the frame your toolbar ended up with and see where it's gone.
On 30 Dec,