سؤال

they say a picture is worth thousand words so... when i dont implement layoutSubviews in custom UITableViewCell i get this

enter image description here

after implementing layoutSubviews in custom UITableViewCell i get this

enter image description here

How can i get the first picture with the implementation of layoutSubviews?

هل كانت مفيدة؟

المحلول

Don't forget to call super:

- (void)layoutSubviews
{
    [super layoutSubviews];

    //... custom stuff
}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top