мне нужно отправить уведомление @"willAnimateRotationToInterfaceOrientation"
с параметрами toInterfaceOrientation
и duration
(вопрос № 1) всем UIViewController
по применению (вопрос # 2). Как написать код для этого?Как отправить уведомление с параметрами Objective-C?
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(willAnimateRotationToInterfaceOrientation:toInterfaceOrientation:duration)
name:@"willAnimateRotationToInterfaceOrientation"
object:nil];
[[NSNotificationCenter defaultCenter]
postNotificationName:@"willAnimateRotationToInterfaceOrientation"
object:self];
Связанный вопрос: http://stackoverflow.com/questions/15957077/event-willanimaterotationtointerfaceorientation-isnt-calling – Dmitry