On a UITableViewCell
with UITableViewCellStyleSubtitle
styling, I'm setting the imageView.image
, textLabel.text
, and detailTextLabel.text
. There's white padding all around the cell. How do I get rid of the padding so all my images touch each other like the Youtube app below?
相关问题
- 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?
- 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
- How do you detect key up / key down events from a
In iOS8 you can set
in code, or from Interface Builder.
Just remove table separator:
Probably the easiest way to do this would be to subclass
UITableViewCell
and override the-layoutSubviews
method to do something like this:Try reducing the UITableView's row height in interface builder or code so that there is no padding. I had to increase the padding i did so in the interface builder for the tableview. However Daves answer might give you more control over modifying the cell view.