Original solution link

This solved an issue for use where a Table View did not align correctly with the Navigation Bar for iOS7 but worked fine for iOS6 and before.

Add it to the -(void)viewDidLoad method.


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

 

 

UK Electronic Designer