soffes / SSPullToRefresh

Simple and highly customizable pull to refresh view
MIT License
885 stars 139 forks source link

Allow autoresizing mask. #32

Closed hwaxxer closed 11 years ago

hwaxxer commented 11 years ago

Is there a special reason why UIViewAutoresizingNone is set on the contentView? I'm finding myself having to do this:

self.pullToRefreshView.contentView = pullToRefreshContentView;
pullToRefreshContentView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
soffes commented 11 years ago

I definitely had a reason for this, although I can't remember what it was. Do you notice anything weird after setting this? Did you test with the stock content views?

hwaxxer commented 11 years ago

I haven't noticed anything weird, I also tried with the included content views. On the contrary, the spinner in the - SSPullToRefreshDefaultContentView ends up out of bounds when I rotate from landscape to portrait when I can't set UIViewAutoresizingFlexibleWidth. Screenshots below: 0q 0p

soffes commented 11 years ago

Thanks so much!

hwaxxer commented 11 years ago

Thank YOU for a great library! :+1: