Has anyone noticed that self.view setFrame has stopped working with Nav Controller in iOS 8. It works just fine if the view controller does not have a nav controller, but otherwise, it doesnt. Does anyone know a work around? Currently I am using
[self.view setFrame:CGRectMake(0,-100,[[UIScreen mainScreen] bounds].size.width,[[UIScreen mainScreen] bounds].size.height)];
But this doesnt work anymore
Try to set "setTranslatesAutoresizingMaskIntoConstraints" to YES before setting the frame:
[self.view setTranslatesAutoresizingMaskIntoConstraints:YES];
And then set your frame:
[self.view setFrame:CGRectMake(0,-100,[[UIScreen mainScreen] bounds].size.width,[[UIScreen mainScreen] bounds].size.height)];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With