我目前有一个有两个UIViews的UIViewController,通过segmentedControl隐藏和取消隐藏它们。我希望能够实现pull-to-refresh特性,如果我有一个UITableViewController,这很容易实现。但我现在没有,所以我很迷茫,不知道该怎么做。
这显然会给我一个错误,因为UIViewController没有refreshControl
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
refreshControl.tintColor = [UIColor magentaColor];
self.refreshControl = refreshControl;谢谢你的帮助!
发布于 2014-07-24 15:59:52
UIRefreshControl只能在UITableViewController类中使用。
https://stackoverflow.com/questions/15779931
复制相似问题