Any way to silence the UIDevice setOrientation warning?
问题 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