# 런타임, 코드를 통하여 확인

size_t size;

sysctlbyname("hw.machine", NULL, &size, NULL, 0);

char *machine = malloc(size);

sysctlbyname("hw.machine", machine, &size, NULL, 0);

NSString *platformString = [NSString stringWithCString:machine encoding:NSASCIIStringEncoding];

free(machine);


# 디바이스가 없는 경우 아래의 경로에서 확인

- Xcode의 시뮬레이터 디바이스 타입 목록 경로 접근

  : /Applications/Xcode6 GM2/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes

- 해당 경로의 디바이스의 리소스 프로파일을 통하여 확인

  : /Applications/Xcode6 GM2/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 6 Plus.simdevicetype/Contents/Resources

'Mobile > iOS 개발 팁' 카테고리의 다른 글

[iOS/Dev] App Store 링크 만들기  (0) 2015.03.15
[iOS/Dev] old Plist file 양식.  (0) 2015.03.13
iOS8 넘어오면서 보려고 하는 글 모음.  (0) 2014.10.15
[iOS/Dev] font family  (0) 2013.12.22
[iOS/Dev] iOS Dimensions  (0) 2013.12.22

+ Recent posts