iphone - Hide UITableViewStyleGrouped separator at certain sections -
iphone - Hide UITableViewStyleGrouped separator at certain sections -
i have grouped uitableview
, have 1 cell @ section 0. want hide separator @ first section. if utilize tableview.separator = [uicolor clearcolor]
, hides separators. ideas?
while original comment way (roll own subclass separator), ios7 has given new pretty easy way too.
with add-on of separatorinsets
on tables in ios7, uitableviewcell
has separatorinset
property. giving big value larger size of table (such uiedgeinsetsmake(0, 320, 0, 0)
), can hide separator moving off screen.
the caveat default, built-in views of uitableviewcell
rely on separator inset horizontal alignment of content (so content off screen , invisible). way prepare build own subviews instead, or set x origin of default ones using in layoutsubviews
method of uitableviewcell
subclass.
iphone objective-c uitableview
Comments
Post a Comment