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

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -