Guest User

UITableView Loading downloadTips

a guest
Sep 15th, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. - (void)downloadTips {
  2. NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  3.  
  4. NSString *url = //Houden we even geheim
  5. NSMutableDictionary *storiesData = [renssiesLib jsonFromURLString:url];
  6. NSArray *keys = [storiesData allKeys];
  7. id aKey = [keys objectAtIndex:4];
  8. tipsArray = [[NSMutableArray alloc] initWithArray:[storiesData objectForKey:aKey]];
  9. [self performSelectorOnMainThread:@selector(reloadTable) withObject:nil waitUntilDone:NO];
  10. [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
  11. if(_reloading == YES) {
  12. [self performSelector:@selector(dataSourceDidFinishLoadingNewData)];
  13. }
  14. [refreshHeaderView setCurrentDate];
  15.  
  16. [pool release];
  17. }
  18. - (void)reloadTable {
  19. [tipsTable reloadData];
  20. [tipsTable setUserInteractionEnabled:YES];
  21. }
Add Comment
Please, Sign In to add comment