Amnell/APParallaxHeader

image does not resize when resizing view [solution included, please check in to master]

ebm42 opened this issue · 2 comments

i am using the APParallaxHeader in a Modal View which is resizeable. i figured out that the image does not resize but the APParallaxView does. So, easy fix for that is to set the autoresizingMask of imageView to the following in line 196:

[self.imageView setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight];

and also in line 189 set the autoresizingmask for self:

[self setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight];

+1 for this

Probably easier to make a pull request for this solution ;)