swift - Change UITableViewCell Frame in layoutSubviews iOS 8 -


i trying similar effect of uitableviewcell in ios facebook app

so subclassed uitableviewcell , in layoutsubviews

i use code resize cell frame

self.frame = cgrectinset(self.frame, 1.5, 1.5) 

and rounded rect of cell

self.layer.cornerradius = 10.0 

and it's working no problem once cell gets highlighted cell gets resized every time cell highlighted think it's because layoutsubviews called more once it's applying effect every time

before highlight

after

is there anyway fix ?


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -