3

As of now we are all aware of this issue

I want to fix this issue using autolayout. Answers that i found till only states about the delta that is in only avaliable with autoresizing

What is the best way to handle this issue in autolayout , i am using storyboard.

This solution is not working for me

Community
  • 1
  • 1
Champ
  • 47
  • 6

2 Answers2

3

Use the topLayoutGuide property of your view controller:

id top = self.topLayoutGuide;
NSDictionary *views = NSDictionaryOfVariableBindings(_sessionView, top);
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[top][_sessionView(==50)]" options:0 metrics:nil views:views]];
Johannes Luong
  • 574
  • 5
  • 19
1

Give in and embed it in a navigation controller, even if it is the only item. Kind of strange to have a title, but you can think of it as keeping the user oriented.

James
  • 1,118
  • 7
  • 13
  • But i am using `imageview` instead of `navigation controller` , and i have hide navigation controller – Champ Sep 30 '13 at 15:25
  • Your linked issue referenced a UITableViewController and embedding it in a navigation controller is valid solution. Please update your question to describe exactly what the issue is with your views and the status bar and what the desired outcome is. – James Sep 30 '13 at 17:14