我目前有一个UIViewController有两个UIViews,通过隐藏和取消隐藏它们segmentedControl。我希望能够实现该pull-to-refresh功能,如果我有一个UITableViewController. 但我现在没有那个,所以我很不知道该怎么做。
这显然会给我错误,因为UIViewController没有refreshControl
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
refreshControl.tintColor = [UIColor magentaColor];
self.refreshControl = refreshControl;
谢谢你的帮助!