How to pass userInfo in NSNotification?

You get an NSNotification object passed to your function. This includes the name, object and user info that you provided to the NSNotificationCenter.

- (void)orientationChanged:(NSNotification *)notification
{
    NSDictionary *dict = [notification userInfo];
}

Your selector must have : to accept parameters.
e.g.

@selector(orientationChanged:)

then in the method declaration it can accept the NSNotification parameter.