2012-07-18から1日間の記事一覧
ViewController以外でデバイスのローテートを検出する場合、NSNotificationCenterにお願いするのが手っ取り早い方法だ。コード自体は非常に簡単。 [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; [[NSNotificationCenter defau…
ViewController以外でデバイスのローテートを検出する場合、NSNotificationCenterにお願いするのが手っ取り早い方法だ。コード自体は非常に簡単。 [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; [[NSNotificationCenter defau…