【发布时间】:2013-05-19 13:03:40
【问题描述】:
我想刷新表格的内容,但它不起作用。
- (void)viewDidLoad
{
[super viewDidLoad];
self.title = @"Last News";
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
//
NSURL *url = [NSURL URLWithString:@"http://www.apinae.com/json.php"];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[[NSURLConnection alloc] initWithRequest:request delegate:self];
// test refresh
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
refreshControl.tintColor = [UIColormagentaColor];
self.refreshControl = refreshControl;
// test refresh
}
提前致谢。
【问题讨论】:
标签: ios xcode tableview uirefreshcontrol