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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -