uirefreshcontrol

UIRefreshControl() in iOS 11 Glitchy effect

瘦欲@ 提交于 2019-12-04 01:48:32
Every time I pull to refresh the TableView, the UIRefreshControl appears to be glitchy. Below is the code I am using. Any Ideas? In AppDelegate: UINavigationBar.appearance().isTranslucent = false UINavigationBar.appearance().barTintColor = UIColor.red UINavigationBar.appearance().tintColor = UIColor.white In UITableViewController: self.tableView.refreshControl = UIRefreshControl() if #available(iOS 11.0, *) { self.navigationController?.navigationBar.prefersLargeTitles = false } else { // Fallback on earlier versions } self.tableView.refreshControl = refreshCont For me self

UIRefreshControl bug when entering foreground

泪湿孤枕 提交于 2019-12-04 00:18:06
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 in viewDidLoad : // Initializing generic refresh control self.refreshControl = [

Pull To Refresh Jump in iOS

老子叫甜甜 提交于 2019-12-03 16:53:49
问题 When I slowly pull down to refresh, I see the UIActivityIndicator circle slowly get more complete before it starts the refresh. Just before the circle is complete and the refresh actually triggers, the content jumps/jerks down and then the circle starts spinning. I only notice this when I pull down slowly. I'm using the pull to refresh inside a scroll view called mainSV self.refresh = [[UIRefreshControl alloc] init]; [self.refresh addTarget:self action:@selector(handleRefresh)

How Do I Shorten the Pull Distance to Activate the Pull to Refresh Action in iOS 6/7?

╄→尐↘猪︶ㄣ 提交于 2019-12-03 16:30:21
问题 Hey StackOverflow People, I've been trying to figure out this question for some time now but to no avail and I need some help. I have a UITableView close to the bottom of my app and there's not enough screen distance for the user to engage the refresh. Does anybody know how I can shorten the distance it takes to activate the pull to refresh action (via a UIRefreshControl in iOS 6/7) on a UITableView and UIWebView ? Thanks in advance everyone! 回答1: you can still use refreshControl but with

Prefer Large Titles and RefreshControl not working well

送分小仙女□ 提交于 2019-12-03 15:39:18
问题 I am using this tutorial to implement a pull-to-refresh behavior with the RefreshControl . I am using a Navigation Bar . When using normal titles everything works good. But, when using "Prefer big titles" it doesn't work correctly as you can see in the following videos. Anyone knows why? The only change between videos is the storyboard check on "Prefer Large Titles". 回答1: I'm having the same problem, and none of the other answers worked for me. I realised that changing the table view top

Is there a horizontal UIRefreshControl?

眉间皱痕 提交于 2019-12-03 14:57:21
You can add UIRefreshControl to UICollectionView (or any UIScrollView for that matter) by adding it to collection's subviews : UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init]; [refreshControl addTarget:self action:@selector(handleRefresh:) forControlEvents:UIControlEventValueChanged]; [self.collectionView addSubview:refreshControl]; This doesn't work when collection view layout has UICollectionViewScrollDirectionHorizontal . I tried overriding layoutSubviews to put refresh control to the left, but it wouldn't track scrolling progress this way. Can I trick it into working

UIRefreshControl is in wrong position in UITableViewController

巧了我就是萌 提交于 2019-12-03 11:34:30
I've seen quite a few problems with UIRefreshControl, and I'm having a problem as well with my UITableViewController. The problem occurs so randomly and henceforth I cannot figure out why or how it happens. The problem is that sometimes when you scroll down on the tableView, the UIRefreshControl appears in the wrong place, and what seems like above/on top of the tableView itself. I'm attaching a screenshot of what the problem looks like, and also my code used to add the UIRefreshControl and it's refreshing method as well. I appreciate any help offered! - (void)viewDidLoad { self.refreshControl

UIRefreshControl Background Color

泪湿孤枕 提交于 2019-12-03 09:51:28
问题 Is it possible to make the background of a UIRefreshControl grow as the control grows? I would like to have a colored background for the refresh control to match the top cell's background color. Changing the background color of the tableview is not acceptable because then empty cells at the bottom will also have the color, but I need them to stay white. Apple's mail app shows this behavior. The refresh control's background matches the gray search bar, but empty cells at the bottom of the

How do I programmatically slide the UITableView down to reveal the underlying UIRefreshControl

时间秒杀一切 提交于 2019-12-03 08:29:32
问题 How can I reveal the UIRefreshControl when I update the table programmatically? Using [self.refreshControl beginRefreshing] make the spinner animate but does not reveal it. 回答1: You'll have to manually change the contentOffset of your UITableView yourself. Be sure to account for the contentInset.top . It should be something as simple as: CGPoint newOffset = CGPointMake(0, -[myTableView contentInset].top); [myTableView setContentOffset:newOffset animated:YES]; 回答2: This will do the trick -

How Do I Shorten the Pull Distance to Activate the Pull to Refresh Action in iOS 6/7?

霸气de小男生 提交于 2019-12-03 06:29:50
Hey StackOverflow People, I've been trying to figure out this question for some time now but to no avail and I need some help. I have a UITableView close to the bottom of my app and there's not enough screen distance for the user to engage the refresh. Does anybody know how I can shorten the distance it takes to activate the pull to refresh action (via a UIRefreshControl in iOS 6/7) on a UITableView and UIWebView ? Thanks in advance everyone! you can still use refreshControl but with some modifications! add these code to your viewController: var canRefresh = true override func