ios - How to Programmatically Determine Supported App Orientations? -
I am working on a third party library which can go to any app. My library provides functionality that depends on which orientation is supported within an app, I'm thinking that if there is any reliable, programmatic way to recover a list of supported app orientations in any app. This is important so that I can make the functionality available to my library based on orientation.
Note: It is a library to consider, I need it to be able to consult a trusted place for this information . You can read And you can easily be supported as a dictionary with the info.plist
[[NSBundle mainBundle] infoDictionary]
UIS supported interface key in the way Orientation from.
NSDictionary * infoDict = [[NSBundle main bundle] infoDictionary]; NSArray * Supported Orientation = [Information Item Object: @ "UISupportedInterfaceOrientations"];
Comments
Post a Comment