사용자가 어떤 장치를 실행하고 있는지 감지하는 적절한 방법입니까?기기 모델 (iPhone/iPod Touch)을 감지하는 적절한 방법은 무엇입니까?
NSString *currentModel = [[UIDevice currentDevice] model];
if ([currentModel isEqualToString:@"iPhone"]) {
// The user is running on iPhone so allow Call, Camera, etc.
} else {
// The user is running on a different device (iPod/iPad/iPhone Simulator) disallow Call.
}
이것은이 질문과 중복되는 것으로 보입니다. http://stackoverflow.com/questions/688001/how-to-tell-if-your-code-is-running-on-an-iphone-or-an -iphone3g –