Closed westerlund closed 10 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?
I'm having resizing issues as well. Has anyone found a solution?
@NickPappas, do you still have problems?
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.
Could you grab a screenshot through the Xcode organizer, under the Devices tab?
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.
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.
Haven't heard anything for a long time so closing this ticket. I don't have any problems resizing AMBlurView instances.
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.
It's about rotation... not necessarily resizing.
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.
" 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.
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.
Cool. Problem solved :dancers:
The blur layer doesn't resize properly when rotating device.