Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)downloadTips {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- NSString *url = //Houden we even geheim
- NSMutableDictionary *storiesData = [renssiesLib jsonFromURLString:url];
- NSArray *keys = [storiesData allKeys];
- id aKey = [keys objectAtIndex:4];
- tipsArray = [[NSMutableArray alloc] initWithArray:[storiesData objectForKey:aKey]];
- [self performSelectorOnMainThread:@selector(reloadTable) withObject:nil waitUntilDone:NO];
- [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
- if(_reloading == YES) {
- [self performSelector:@selector(dataSourceDidFinishLoadingNewData)];
- }
- [refreshHeaderView setCurrentDate];
- [pool release];
- }
- - (void)reloadTable {
- [tipsTable reloadData];
- [tipsTable setUserInteractionEnabled:YES];
- }
Add Comment
Please, Sign In to add comment