iOS开发中的菜单

记录iOS开发中遇到的让开发者惊喜的小功能:

1,UITableViewController里集成了下拉刷新功能,UIRefreshControl

self.refreshControl = [[UIRefreshControl alloc] init];
self.refreshControl.attributedTitle = [[NSAttributedString alloc] initWithString:@"努力加载中……"];
self.refreshControl.tintColor = [UIColor grayColor];
[self.refreshControl addTarget:self action:@selector(refreshAction) forControlEvents:UIControlEventValueChanged];

你可能感兴趣的:(ios,ios开发,开发人员)