@"willAnimateRotationToInterfaceOrientation"
パラメーターtoInterfaceOrientation
とduration
(質問 #1 ) を含む通知をUIViewController
アプリケーション (質問 #2 ) の全員に送信する必要があります。そのためのコードをどのように書くのですか?
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(willAnimateRotationToInterfaceOrientation:toInterfaceOrientation:duration)
name:@"willAnimateRotationToInterfaceOrientation"
object:nil];
[[NSNotificationCenter defaultCenter]
postNotificationName:@"willAnimateRotationToInterfaceOrientation"
object:self];