How to remove animation glitch ?
Posted
by hib
on Stack Overflow
See other posts from Stack Overflow
or by hib
Published on 2010-06-08T09:27:33Z
Indexed on
2010/06/08
9:32 UTC
Read the original article
Hit count: 363
Hi all ,
I am downloading and then parsing some data on separate thread and then updating my ui on main thread with the following code but in this scenario I am getting animation "glitch" . I have read this word somewhere .
- (void)didFinishParsing2:(NSArray *)appList
{
[self performSelectorOnMainThread:@selector(handleLoadedApps2:) withObject:appList waitUntilDone:NO];
self.queue = nil; // we are finished with the queue and our ParseOperation
}
- (void)handleLoadedApps2:(NSArray *)loadedApps{
[activityLabel removeFromSuperview];
self.controller.MyArray = (MyClass *)[arrMyArray objectAtIndex:0];
[[MySharedClass sharedSource].detailSource setObject:self.controller.MyArray forKey:someObject];
self.controller.hidesBottomBarWhenPushed = YES;
isPushed = YES;
[[self navigationController] pushViewController:self.controller animated:YES];
}
Can anyone tell me what I am doing wrong so that I can remove the animation glitch .
© Stack Overflow or respective owner