why don't you use reloadData ... I think this will help you with what you want to display in your user interface. If you use for the loop and add some data to your actual array, and in the end, if you call reload, this will give you this effect.
If you want to continue your existing code, try adding [NSThread sleepForTimeInterval:0.5]; after I guessed [self.featuredEventTableView endUpdates]; . I'm not on my poppy, so I canβt test it. This will pause the current thread for some time, so it will give an animation effect.
EDIT Try the code below
if([[[[[notification userInfo] objectForKey:@"cityevent"]objectForKey:@"events"]objectForKey:@"event"] isKindOfClass:[NSArray class]]) { for(NSDictionary *tempDict in [[[[notification userInfo] objectForKey:@"cityevent"]objectForKey:@"events"]objectForKey:@"event"]) { ESEvent *event=[[ESEvent alloc]init]; event.name=[tempDict objectForKey:@"name"]; if([[tempDict objectForKey:@"image"]isKindOfClass:[NSNull class]] || [tempDict objectForKey:@"image"] ==nil) event.image=[UIImage imageNamed:@"category_default.png"]; else { event.image=[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[tempDict objectForKey:@"image"]]]]; } [events addObject:event]; NSIndexPath *ip=[NSIndexPath indexPathForRow:([events count]-1) inSection:0]; NSLog(@"row: %i section: %i",ip.row,ip.section);
source share