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
Post a Comment