I have an UICollectionView with subviews in the cells. They don't resize in iOS7 using the iOS8 SDK. When running the app on iOS8 seems to be ok
It seems that in the drawForRect of the subviews the frame is not resized as it's all the time returning the same value.
I am using auto layout attaching the the subviews to the edge of the cells.
Any clue?
Thanks a lot.
EDIT
This is the solution. I will keep this in case it's easier to find for you with my question.
https://stackoverflow.com/a/25768887/1523444
I have same problem with iOS7. Its work for me. Put this method in custom cell class.
-(void)awakeFromNib
{
self.contentView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With