我需要将@"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];