WXHL学习文章连载 十四
来源:互联网 发布:台湾进口知乎 编辑:程序博客网 时间:2024/05/22 02:10
//禁止视图控制器调整滑动视图的insets
self.automaticallyAdjustsScrollViewInsets = NO;
__weak LCHomeViewController *weakSelf = self;
//下拉刷新
[self.homeTableView addPullToRefreshWithActionHandler:^{
__strong LCHomeViewController *strongSelf = weakSelf;
[strongSelf loadNewData];
}];
//上拉刷新
[self.homeTableView addInfiniteScrollingWithActionHandler:^{
__strong LCHomeViewController *strongSelf = weakSelf;
[strongSelf loadOldData];
//读取已经保存的主题
NSString *savedTheme = [[NSUserDefaults standardUserDefaults] objectForKey:SavedTheme];
if (savedTheme == nil) {
//默认主题名字
_themeName = @"猫爷";
}else{
_themeName = savedTheme;
}
//配置文件
_themeConfig = [NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"theme"ofType:@"plist"]];
}
return self;
- WXHL学习文章连载 十四
- WXHL 学习文章连载十二
- WXHL 学习文章连载十三
- WXHL 学习文章连载 (十)
- WXHL 学习文章连载 (十六)
- WXHL 学习总结连载(六)
- WXHL 学习总结连载 十一
- wxhl ios bj 49期 张浩 学习文章连载 第9章
- WXHL 学习总结连载(三)
- WXHL 学习总结连载(四)
- WXHL 学习总结连载(八)
- WXHL 学习总结连载(九)
- wxhl ios bj 49期 张浩 学习心得体会文章连载 第六章
- wxhl ios bj 49期 张浩 学习心得体会文章连载 第7章
- wxhl bj ios 49期 张浩 学习心得体会文章连载 第8章
- wxhl iOS bj 49 张浩 学习心得文章连载 第11章
- wxhl bj iOS 49期 张浩 学习心得体会文章连载 第12章
- wxhl iOS bj 49 张浩 学习心得文章连载 第13章
- nyoj 1237 最大岛屿【dfs】
- 通过snmp v2读取cisco 3560上的 mac-address-table 的问题
- 死锁产生的原因
- IEnumerable与IQueryable
- CentOS使用心得
- WXHL学习文章连载 十四
- 003用LabVIEW和Arduino开发一个温度采集系统
- 建立控制器模型,舍弃建立数据库表模型(laravel 5)
- 转载;字典转模型
- error while crawling /home/$USER: boost::filesystem::status: Permission denied: “/home$USER/.gvfs”
- WAMP常用环境配置
- C/C++函数参数的入栈顺序,计算顺序和可变参数的实现
- Unity3D中级开发工程师面试指导
- 不能清除错误的资源,怎么办