2012-05-17 1 views

ответ

3

Заверните внутри NSNumber:

id orientationObject = [NSNumber numberWithInteger:UIInterfaceOrientationPortrait]; 
[userinfo setObject:orientationObject forKey:@"orientation"]; 

// pass around ... 

UIInterfaceOrientation orientation = (UIInterfaceOrientation)[[userinfo objectForKey:@"orientation"] integerValue];