rotation problems when a UIAlertView is showing in iOS 7

前端 未结 3 485
旧巷少年郎
旧巷少年郎 2020-12-28 23:47

in iOS7, rarely but occassionally, when I rotate my app while a UIAlertView is showing, only the alertView and the status bar rotate, and not my app. Has anybod

3条回答
  •  醉梦人生
    2020-12-29 00:20

    I had the opposite problem. My app would rotate but the alert view would not rotate. I found out that this was because I was showing the alert view immediately after a UIActionSheet was dismissed (so while it's dismissal animation was taking place). This seemed to be triggering a bug that will make the alert view not rotate with the app (and some other minor visual problems later). I solved this by presenting the alert view a half second after the action sheet begins to dismiss, like this:

    [alertView performSelector:@selector(show) withObject:nil afterDelay:0.5];
    

提交回复
热议问题