JagCesar / iOS-blur

Blur a UIView
Do What The F*ck You Want To Public License
2.07k stars 211 forks source link

Resize issues #10

Closed westerlund closed 10 years ago

westerlund commented 11 years ago

The blur layer doesn't resize properly when rotating device.

ZevEisenberg commented 11 years ago

The combination of autoresizing masks and auto layout seems very confused. Why are you doing any layout at all in -setup? I would think that just always setting the layer’s frame in -setFrame: and -initWithFrame: would be sufficient?

NickPappas commented 11 years ago

I'm having resizing issues as well. Has anyone found a solution?

JagCesar commented 10 years ago

@NickPappas, do you still have problems?

aardWolf64 commented 10 years ago

I've worked pretty extensively with this class on my new iPhone 5S. It does something funny on rotate that I'm having trouble explaining. It is resizing properly, but there's this weird blurring going on in the upper right hand corner while it rotates. It's impossible to get a screenshot of on an actual device, and rotation happens too fast in the simulator to see it. Maybe I'll try to use my iPad to record video of it happening.

As a workaround, I've tried hiding the blurView on rotate and showing it again afterwards, but it still doesn't feel right.

ZevEisenberg commented 10 years ago

Could you grab a screenshot through the Xcode organizer, under the Devices tab?

aardWolf64 commented 10 years ago

I haven't been able to get a screenshot, because it only happens during a half second that it's rotating. The screenshots that I have ended up with are always fully portrait or landscape... never the transition. I just grabbed my iPad, so I'll take a quick video that I can post here.

aardWolf64 commented 10 years ago

Here's the video:

https://dl.dropboxusercontent.com/u/6717840/AMBlurView.mov

You can see it the most when I rotate to Portrait at around 11 seconds, as well as at 19 seconds.

JagCesar commented 10 years ago

Haven't heard anything for a long time so closing this ticket. I don't have any problems resizing AMBlurView instances.

aardWolf64 commented 10 years ago

You haven't heard anything for a long time because we were waiting on your comment about the video proof I posted 2 months ago. The problem still exists, and I released my app with that issue since then.

aardWolf64 commented 10 years ago

It's about rotation... not necessarily resizing.

JagCesar commented 10 years ago

I think the best solution would be if you could share some code so I can deploy it do my own device and see the bug.

JagCesar commented 10 years ago

" there's this weird blurring going on in the upper right hand corner while it rotates"

I don't see anything weird on the video.. The only thing I see is that you resize the view without an animation.

aardWolf64 commented 10 years ago

I definitely saw something odd going on there in a couple of the rotations... That said, I just attempted to reproduce it on my device. I rotated it 100 times or so, and the issue appears to be gone. Perhaps it was an iOS bug that has since been fixed. Sorry for the false alarm.

JagCesar commented 10 years ago

Cool. Problem solved :dancers: