I am using a UITableView
with UITableViewCells
and I want to stop the "over" scroll that you get at the top and bottom of the list, The bit where you can pull down on the very top cell to show the background (sometimes used to refresh) Is there anyway to just make the top edge of the cell the "absolute top"? so the view only ever shows just the cells?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- back button text does not change
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
You can use this code to solve your Problem
And used Below code to if data is fit on screen than its not scroll
Interface builder
Swift 4.2:
It's not scroll at all:
It's not scroll if there is enough space for cells:
Hope to be useful.
You can set the tableview bounces property to NO.
Since UITableView is a subclass of UIScrollview, it should suffice to just set the 'bounces' property to NO.
Edit: you probably need to set'alwaysBounceVertical' to NO, too...