What is the class NSCFNumber in iOS 4.1? What is the class NSCFNumber in iOS 4.1? ios ios

What is the class NSCFNumber in iOS 4.1?


This is telling you that orientation is a instance of NSNumber. Technically, NSCFNumber is a private subclass of NSNumber, but that is an implementation detail which you don't have to worry about. To get the integer value you would call

[orientation integerValue]


NSNumber is a class cluster. NSCFNumber is a concrete, "private" implementation of a class in that cluster. Just use the returned value like you would an NSNumber object.