工作,我有一个UICollectionView
中,我想一个UIRefreshControl
为了使用户能够向下滑动即可刷新集成。迅速3 - UIRefreshControl不是在大屏幕
说我在我的UICollectionView
中有5个项目。如果我在iPhone5中运行我的应用程序,那么UIRefreshControl
工作得很好。但是,如果我在iPhone6Plus(其中所有5个项目都适合屏幕)中运行它,那么UIRefreshControl
就不再适用了;我甚至无法将其滑倒。
是否有UIRefreshControl
的任何属性,可以帮助用户向下滑动,在任何情况下,无论屏幕是什么尺寸?我接过来看看下面UIRefreshControl
类,但似乎这些都不能帮助:
public init()
open var isRefreshing: Bool { get }
open var tintColor: UIColor!
open var attributedTitle: NSAttributedString?
// May be used to indicate to the refreshControl that an external event has initiated the refresh action
@available(iOS 6.0, *)
open func beginRefreshing()
// Must be explicitly called when the refreshing has completed
@available(iOS 6.0, *)
open func endRefreshing()
的丑陋的解决方案是让一个刷新按钮,这是我不想要的。
您有什么想法吗?
在此先感谢
非常感谢,约翰尼。有用! – quanguyen