ios7 tableview scrollsToTop 不执行处理方法
2015-05-29 13:51
531 查看
ios7中调用[self.tableview scrollsToTop] 没有效果(ios8中也没有效果)
stackflow 处理方法:
[self.tableviewscrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:YES];
或者implement the UIScrollViewDelegate method
这个方法没有尝试
以上方法参见:http://stackoverflow.com/questions/19059024/cant-get-scrollstotop-working-on-ios7[/code]
stackflow 处理方法:
[self.tableviewscrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:YES];
或者implement the UIScrollViewDelegate method
scrollViewShouldScrollToTop:
- (BOOL) scrollViewShouldScrollToTop:(UIScrollView*) scrollView { if (scrollView == self.myTableView) { return YES; } else { return NO; } }
这个方法没有尝试
以上方法参见:http://stackoverflow.com/questions/19059024/cant-get-scrollstotop-working-on-ios7[/code]
相关文章推荐
- ios7 indexPathForCell 的坑(真是一个大大的坑)
- IOS开发中的几种设计模式介绍
- FFmpeg在iOS上完美编译
- iOS webView中调用JS与JS注入
- iOS7 edgesForExtendedLayout
- Toncat-OpenSSL双向认证配置(iOS)
- xcode 运行错误总结
- iOS开发的22个奇谲巧技
- 仿制新浪微博iOS客户端之一-序言
- IOS开发入门初体验
- 数据存储:数据持久化
- 数据存储:获取文件目录
- ios8之后的CLLOCATION定位权限申请
- iOS:Compile error List(二)--Special
- 用CocoaPods做iOS程序的依赖管理
- 网易新闻iOS版使用的18个开源组件
- iOS手势
- iOS中keychain存储结构的研究
- IOS开发中tableView显示列表内容数据(storyboard版)
- ios各种动画效果