Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

edgesForExtendedLayout not working

I have been reading a lot about iOS7 UI transition.

I am not able to get what these three properties automaticallyAdjustsScrollViewInsets, extendedLayoutIncludesOpaqueBars, edgesForExtendedLayout??

For example I am trying to make my view controllers start below the status bar but I am not able to achieve it.User uploaded file

You can see in image aboutus button and search button ... view doesn't start properly . it start from top status bar.


Actually in ios 6 it start from below the status bar.

i have create a ui progrmatically (I am not using storyboard ).

I have google and got following solution but it wont work I have write following code in my Homeviewcontroller

if([self respondsToSelector:@selector(edgesForExtendedLayout)]){ self.edgesForExtendedLayout =UIRectEdgeNone;}

My rootviewcontroller is tab bar i also tried this but did'nt get success

if([self respondsToSelector:@selector(edgesForExtendedLayout)]){ self.tabBarController.edgesForExtendedLayout =UIRectEdgeNone;}

please advise me i dont know what am i doing wrong?Thanks in advance

iPhone 5, iOS 7

Posted on Sep 25, 2013 12:58 AM

Reply

There are no replies.

edgesForExtendedLayout not working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.