Static tableview tap to top on iOS only works on some controllers? -


i have designed app (not yet released) in 2 tableview controllers have static cells. when tap status bar, should zoom top. however, 1 of them this. cause interference on 1 not working?

i found since had hooked up, had manually detect when user tapped clock , scroll programmatically top

 [[nsnotificationcenter defaultcenter] addobserverforname:@"_uiapplicationsystemgesturestatechangednotification"                                                       object:nil                                                        queue:nil                                                   usingblock:^(nsnotification *note) {                                                       nslog(@"status bar pressed!");                                                       //[self.tableview scrolltorowatindexpath:[nsindexpath indexpathforitem:0 insection:0] atscrollposition:uitableviewscrollpositiontop animated:yes];                                                       [self.tableview scrollrecttovisible:cgrectmake(0, 0, 1, 1) animated:yes];                                                     }]; 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -