sergigracia / KoaPullToRefresh

MIT License
84 stars 17 forks source link

iOS7 + UINavigationBar compatibility issue #6

Closed alexiscreuzot closed 10 years ago

alexiscreuzot commented 11 years ago

Current version is not compatible with iOS7, UITableView get positioned behind UINavigationBar.

jstart commented 10 years ago

:+1: Any idea why this is happening? Something to do with the transparent nav bars in iOS7? SVPullToRefresh is doing this same behavior.

jstart commented 10 years ago

Spoke too soon, seems this solves the problem: http://stackoverflow.com/questions/17074365/status-bar-and-navigation-bar-appear-over-my-views-bounds-in-ios-7 Putting the below code in viewDidLoad seems to resolve the issue

if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
    self.edgesForExtendedLayout = UIRectEdgeNone;
alexiscreuzot commented 10 years ago

Woops, I forgot I had open an issue for this. Yes, putting edgesForExtendedLayout to UIRectEdgeNone did the trick for me too ! Thanks ;)