iOS开发中的菜单

来源:互联网 发布:阿里云的cname解析 编辑:程序博客网 时间:2024/06/05 15:42

记录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];
0 0
原创粉丝点击