setorientation

Any way to silence the UIDevice setOrientation warning?

笑着哭i 提交于 2020-01-04 08:05:11
问题 Anyone have a simple way to silence the undocumented UIDevice setOrientation warning? I found this piece of code that silences the undocumented UIPickerView setSoundsEnabled warning. 回答1: just declare the method in a category in the .h or .m file of wherever you use it: @interface UIDevice (MyPrivateNameThatAppleWouldNeverUseGoesHere) - (void) setOrientation:(UIInterfaceOrientation)orientation; @end 回答2: Why not just subscribe to the orientation notifications? They are supported and work at

setOrientation problem

让人想犯罪 __ 提交于 2019-12-06 13:36:10
问题 I have a really strange orientation issue. I have a sequence of view controllers under a navigation controller. One of them can take any orientation. When I'm leaving the orientation I have to use setOrientation. The funny thing is the rotation takes place as the transition occurs to the next page. This isn't normally a problem except for a single case -- from UIDeviceOrientationPortraitUpsideDown to normal causes all my top mounted items to migrate up about an eighth of a page. There are

setOrientation problem

☆樱花仙子☆ 提交于 2019-12-04 19:58:38
I have a really strange orientation issue. I have a sequence of view controllers under a navigation controller. One of them can take any orientation. When I'm leaving the orientation I have to use setOrientation. The funny thing is the rotation takes place as the transition occurs to the next page. This isn't normally a problem except for a single case -- from UIDeviceOrientationPortraitUpsideDown to normal causes all my top mounted items to migrate up about an eighth of a page. There are three ways I think I could fix it: Somehow separate the setOrientation from my pushViewController call (so