首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从UIViewController使用refreshControl

从UIViewController使用refreshControl
EN

Stack Overflow用户
提问于 2013-04-03 14:01:22
回答 1查看 2.8K关注 0票数 0

我目前有一个有两个UIViewsUIViewController,通过segmentedControl隐藏和取消隐藏它们。我希望能够实现pull-to-refresh特性,如果我有一个UITableViewController,这很容易实现。但我现在没有,所以我很迷茫,不知道该怎么做。

这显然会给我一个错误,因为UIViewController没有refreshControl

代码语言:javascript
复制
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
refreshControl.tintColor = [UIColor magentaColor];
self.refreshControl = refreshControl;

谢谢你的帮助!

EN

回答 1

Stack Overflow用户

发布于 2014-07-24 15:59:52

UIRefreshControl只能在UITableViewController类中使用。

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15779931

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档