I want to load a table view with cells. In between cells I should able to see minimum cell gap. How can I increase existing table view cell distance in my navigation controller root view?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t increase cell distance, but what you can do is subclass UITableViewCell, override
-layoutSubviews, and reposition all the internal views to allow for a bit of padding on one (or both) end(s) of the cell.That said, I can’t think of a single app on the iPhone that has a cell padding like this. You should think very carefully before doing this, as it’s quite non-standard.