in AppDelegate.h file, I add
#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)
and in AppDelegate.m file, I add
if (iPhone5) {
NSLog(@"iPhone5/5s")
}
else {
NSLog(@"not iPhone5/5s");
}
but it shows log not iPhone5/5s
when I run this project in iPhone 5 or 5s, in my project, I just add cocoapods, and open this project file that cocoapods created(projectname.xcworkspace).
BTW, it runs right if i create a new project without using cocoapods, so how can i fix it?