i want to know the user uses the iphone or ipad,if the user uses the iphone i want to open the camera,if he uses the ipad or runs in simulator i want to open the library. ho
[[UIDevice currentDevice].model hasPrefix:@"iPhone"]
Use the "hasPrefix" so that it works in simulator.