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

  [[NSBundle mainBundle] infoDictionary]   

And you can easily be supported as a dictionary with the info.plist UIS supported interface key in the way Orientation from.

  NSDictionary * infoDict = [[NSBundle main bundle] infoDictionary]; NSArray * Supported Orientation = [Information Item Object: @ "UISupportedInterfaceOrientations"];    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -