简体   繁体   中英

Flashing UITableView scrollIndicators in iOS7

In iOS6 I use to have a trick to get the scroll indicators to flash in a UITableView :

- (void)didMoveToSuperview
{
    if (self.superview)
    {
        [self performSelector:@selector(flashScrollIndicators) withObject:nil afterDelay:0];
    }
}

However in iOS7 this seems to not work anymore (it worked in iOS 6), and neither does just doing: [self flashScrollIndicators] .

Has anyone figured out a way to get the scroll indicators to flash in iOS7?

My guess is that it's a sequence problem, ie you're populating the table after it moves to superview. To fix the issue, either:

  1. Populate the table earlier in the process like viewDidLoad
  2. Explicitly flash the indicators after the table has been populated

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM