( ...)
, . appRecords, removeAllObjects, , .
, :
- (void)applicationDidFinishLaunching:(UIApplication *)application
{ // [window addSubview: [self.navigationController view]]; [window makeKeyAndVisible];
self.appRecords = [NSMutableArray array];
rootViewController.entries = self.appRecords;
//NSURLRequest * urlRequest = [ NSURLRequestWithURL: [NSURL URLWithString: TopPaidAppsFeed]]; //self.appListFeedConnection = [[[NSURLConnection alloc] initWithRequest: urlRequest delegate: self] autorelease];
[self reloadData];
}
- (IBAction) : (id) {
[self reloadData];
}
- (void) reloadData { NSLog (@ " " ); [self.appRecords removeAllObjects]; // [[myTableViewController imageDownloadsInProgress] removeAllObjects];
NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:TopPaidAppsFeed]];
self.appListFeedConnection = [[[NSURLConnection alloc] initWithRequest:urlRequest delegate:self] autorelease];
NSAssert(self.appListFeedConnection != nil, @"Failure to create URL connection.");
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
}