xcode 8 swift 3 UItableview space between cells?
Make Tablview BG colour white and set BG View colour in cell that you want to keep see in image i have set bgview BG colour is light greay and make BGview hight smaller then cell i mean if you want to set space 10 pixel keep Bg hight smaller then cell 10 pixel
Here is my cell
And here is out put
How to give space between two cells in tableview?
You can create a Sections of TableView also in the UITableView... This methods are compulsory so create sections and in each section you can create single cell as in your picture..
Space Between Sections in UITableview
Did you try override this function:
override func tableView(tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return .leastNormalMagnitude
}
Can I give space between UITableViewCell
The most simple way would be make your cells height a bit bigger(3pt from top and 7pt from the bottom) than that of your cell's background image, and making the colour as [UIColor clearColor]
. That would give the illusion that the cells have a 10 pt gap in between.
How to add spacing between UITableViewCells - Swift
I tried ozgur's method but it didn't work because I had borders between my table view cells. Eventually, I used the answer from this post. Hope it helps
Related Topics
How to Write Application Logs to File and Get Them
Swift: Natively Detect If App Has Crashed
How to Set Status Bar Tint Color on iOS 6
Is There Any Limitation to Distribution of Apps in iOS Enterprise Program
Swift: Custom Camera Save Modified Metadata with Image
Obj-C Afnetworking 2.0 Post Request Does Not Work
iPad iOS7 - Uiimagepickercontroller in Uipopovercontroller Has Wrong Preview Image
Opening Testflight App from Another App and Deep Link to Specific App
Objective-C Check If Subviews of Rotated Uiviews Intersect
How to Efficiently Find Cgrects for Visible Words in Uitextview
How to Use Coreaudio's Audioconverter to Encode Aac in Real-Time
Playing Video Inline in Ionic/Phonegap (Webkit-Playsinline Not Working)
Swift Images Change to Wrong Images While Scrolling After Async Image Loading to a Uitableviewcell
Can Swift Closures Be Set to a Default Value When Used as a Parameter in a Function
Xcode/Swift 'Filename Used Twice' Build Error
Add Uiview Banner Above Status Bar iOS 7
iOS - Wkwebview Cross Origin Requests Are Only Supported for Http