The IsIPad macro doesn't work on the iPhone 4
Closed this issue · 1 comments
siancu commented
Hi,
I've noticed that the IsIPad macro has changed and now it's like this:
#define IsIPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) && (kScreenWidth > 320)
The problem is that on the iPhone 4 it doesn't work anymore. It is true even though it should obviously be false. The problem seems to be with kScreenWidth > 320; removing that part of the condition makes it work again. However, I don't know how this affects running the app on the iPad in iPhone mode.