I am trying to send some data using NSNotification but it is stuck. Here is my code:
// Posting Notification NSDictionary *orientationData; if(iFromInterfaceOrientation == UIInterfaceOrientationLandscapeRight) { orientationData = [NSDictionary dictionaryWithObject:@"Right" forKey:@"Orientation"]; } NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; [notificationCenter postNotificationName:@"Abhinav" object:nil userInfo:orientationData]; // Adding observer [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationChanged) name:@"Abhinav" object:nil];
Now, how to get this userInfo dictionary in my Changed selection orientation?
iphone cocoa-touch cocoa
Abhinav Oct 05 '10 at 7:07 2010-10-05 07:07
source share