MPNotificationView icon indicating copy to clipboard operation
MPNotificationView copied to clipboard

Wrong rotation on restricted rotation

Open edgurgel opened this issue 13 years ago • 2 comments

mpnotification-weird

I got this weird rotation restricting the supported interface orientations for just Portrait.

Any idea why is it happening?

edgurgel avatar Jan 18 '13 13:01 edgurgel

We also noticed that notification view does not always behave as expected when the orientation is restricted. I'll look into that in the next days. Thanks for your report.

ekurutepe avatar Jan 23 '13 14:01 ekurutepe

I'm investigating and we could use the UIApplicationWillChangeStatusBarOrientationNotification and get the next orientation using the userInfo of the notification:

IInterfaceOrientation orientation = [[notification.userInfo valueForKey:UIApplicationStatusBarOrientationUserInfoKey] integerValue];

And then using it to rotate.

edgurgel avatar Jan 23 '13 14:01 edgurgel