ios - Prototype UITableViewCell accessory covers up subviews -


i use provided disclosure indicator accessory in prototype cell. however, enabling covers right hand portion of custom cell divider. (since divider not span full width of cell, not want use built in divider).

is there way can use built in cell accessories, while still utilizing full width of cell's view?

one thing can resize divider, based on location of accessory view.

you can override layoutsubviews, this:

- (void)layoutsubviews {     [super layoutsubviews];      cgrect accessoryframe = self.accessoryview.frame;     cgrect yourcustomviewframe = yourcustomview.frame;     yourcustomviewframe.size.width = accessoryframe.origin.x - yourcustomviewframe.origin.x;     [yourcustomview setframe:yourcustomviewframe]; } 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -