uirefreshcontrol

UIRefreshControl bug when entering foreground

故事扮演 提交于 2020-01-01 08:04:09
问题 I've noticed a little bug (but really annoying) when I use UIRefreshControl in my View Controller. When the application returns from the background the UIRefreshControl is already loaded and it looks like this: As you can see I use a custom navigation controller which hides like in the Facebook app ( AMScrollingNavBar ). When I reload data in UITableView everything comes back to normal and this bug shows only after returning from the background. This is the code which I use to initialize

UIRefreshcontrol jitters when pulled down and held

喜夏-厌秋 提交于 2020-01-01 04:36:12
问题 I have created a UIRefreshcontrol in my tableviewcontroller as follows in the viewdidload method : refresh = [UIRefreshControl.alloc init]; refresh.attributedTitle = [[NSAttributedString alloc] initWithString:@"Pull to Refresh"]; [refresh addTarget:self action:@selector(refreshChatsTableView) forControlEvents:UIControlEventValueChanged]; self.refreshControl = refresh; the problem is that when I pull it down a little long , the table jitters up giving a pretty unpleasant UI experience. Can

Give a top inset to UIRefreshControl

孤者浪人 提交于 2019-12-30 08:02:20
问题 I use an UIRefreshControl like it (without an UITableViewController) : UIRefreshControl *refreshControl = [UIRefreshControl new]; [refreshControl addTarget:self action:@selector(viewDidBeginRefreshing:) forControlEvents:UIControlEventValueChanged]; [self.table addSubview:refreshControl]; Problem is the refresh wheel is positioned below the UINavigationController's translucent bar (ios7). There is only a few topic on this problem on StackOverflow. And they didn't bring any valuable solution to

UIRefreshControl on UICollectionView only works if the collection fills the height of the container

泪湿孤枕 提交于 2019-12-28 03:18:12
问题 I'm trying to add a UIRefreshControl to a UICollectionView , but the problem is that the refresh control does not appear unless the collection view fills up the height of its parent container. In other words, unless the collection view is long enough to require scrolling, it cannot be pulled down to reveal the refresh control view. As soon as the collection exceeds the height of its parent container, it is pulled down and reveals the refresh view. I have set up a quick iOS project with just a

ObjectiveC - WebView not reloading from the top

独自空忆成欢 提交于 2019-12-24 19:49:32
问题 I have a webpage which has a long list of items. I want the user to refresh the page when they tapped on the tab bar item. I manage to call the method to load the web view when they tapped the tab bar item. But it just doesn't reload afresh from the top. It seems like webview is loading from where it is or cache or something. I tried to removecahce but it doesn't seems to work. I want it to reload afresh from the top again. I can't use viewWillAppear because I don't want the page to reload

How would I create a status message that briefly appears “above” a UITableView (like UIRefreshControl)?

三世轮回 提交于 2019-12-22 10:44:50
问题 I'm trying supplement a UIRefreshControl with a UIView containing a message ( statusMessageView ) that appears "above" a UITableViewController after the app launches. This view will inform the user that the UITableViewController is already refreshed and does not need refreshing. Here is a breakdown of what I am trying to accomplish: The app is launched, the UITableViewController appears normal then scrolls down 44px to reveal statusMessageView (with a height of 44px). statusMessageView stays

White line below UIRefreshControl when pulled.. tableView

余生颓废 提交于 2019-12-22 08:04:14
问题 I am implementing a very basic Refresh control... var refreshControl = UIRefreshControl() refreshControl.addTarget(self, action: Selector(("refresh:")), for: UIControlEvents.valueChanged) refreshControl.backgroundColor = UIColor.red self.tableView.addSubview(refreshControl) for some reason though whenever I pull down to refresh it's like the refresh control cannot keep up with the table view and there is a white gap between the two. here is the problem on the simulator... it is worse on the

UIRefreshControl for “Pull Up” to refresh?

妖精的绣舞 提交于 2019-12-18 11:57:55
问题 How do I add UIRefreshControl to bottom of a UIColloectionView? That means how does it work when It comes to Scroll up (to see old data or something)? 回答1: Here is a CCBottomRefreshControl category for UIScrollView class (parent of UICollectionView class) that implements bottomRefreshControl property. It's compatible with both iOS 6 and 7 native refresh controls. 回答2: You can't use UIRefreshControl to do that, but if you're ok with a simpler solution, you could just set up your collection

iOS 10.0 UIRefreshControl not showing indicator

主宰稳场 提交于 2019-12-18 11:53:36
问题 I am using a UITableView Which has a Pull down to refresh function but the spinner for pull down to refresh is not showing up when I call the [self.refreshControl beginRefreshing] The above code is called inside the viewDidLoad cause the table is loading some data initially. The spinner works fine if I perform a pull down to refresh after the initial refresh. The title shows up but not the spinner. Cant seem to solve this problem. It works fine on iOS 9.3.2 but not on iOS 10. Here is the code

iOS 10.0 UIRefreshControl not showing indicator

杀马特。学长 韩版系。学妹 提交于 2019-12-18 11:52:00
问题 I am using a UITableView Which has a Pull down to refresh function but the spinner for pull down to refresh is not showing up when I call the [self.refreshControl beginRefreshing] The above code is called inside the viewDidLoad cause the table is loading some data initially. The spinner works fine if I perform a pull down to refresh after the initial refresh. The title shows up but not the spinner. Cant seem to solve this problem. It works fine on iOS 9.3.2 but not on iOS 10. Here is the code