Ben uygulama (soru 2.) tüm UIViewController
parametreleri toInterfaceOrientation
ve duration
(soru 1.) ile bildirim @"willAnimateRotationToInterfaceOrientation"
göndermek gerekir. Bunun için kod nasıl yazılır?Objective-C'de parametrelerle bir bildirim nasıl gönderilir?
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(willAnimateRotationToInterfaceOrientation:toInterfaceOrientation:duration)
name:@"willAnimateRotationToInterfaceOrientation"
object:nil];
[[NSNotificationCenter defaultCenter]
postNotificationName:@"willAnimateRotationToInterfaceOrientation"
object:self];
İlgili soru: http://stackoverflow.com/questions/15957077/event-willanimaterotationtointerfaceorientation-isnt-calling – Dmitry