how can I detect whether I’m using iphone simulator or ipad simulator.
I’m using some 3rd party library to which I’ve to pass a parameter whether i’m using ipad or iphone. in order to test the app, i want to programatically detect whether i’m using iphone simulator or ipad simulator. is there any way to identify it?
how can I detect whether I’m using iphone simulator or ipad simulator. I’m using
Share
did you tried
[[[UIDevice currentDevice] model] hasPrefix: @"iPad"]