sergigracia / KoaPullToRefresh

MIT License
84 stars 17 forks source link

Doesn't play well with navigation bar #9

Open bodagetta opened 10 years ago

bodagetta commented 10 years ago

I have a navigation bar on my tableviewcontroller and the default implementation hides the top part of the table under the navbar.

tiagojsalmeida commented 10 years ago

@sergigracia , can you fix this please? It would help us a lot!

bodagetta commented 10 years ago

I also tried SSPullToRefresh and had a similar problem. I got around it by turning off navigation bar transparency. You might want to try the same thing.

tiagojsalmeida commented 10 years ago

@bodagetta , to fix this put this on your viewDidLoad:

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

bodagetta commented 10 years ago

Thanks! I'll try it out

farski commented 10 years ago

UIRectEdgeNone changes how nav bar opacity works, so it's a work around at best.

czwen commented 10 years ago

@tiagojsalmeida thanks for your solution

superapplestore commented 10 years ago

@tiagojsalmeida thanks for your solution !

GabrieleMandalari commented 10 years ago

@tiagojsalmeida thank you very much!