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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -