Allen
Allen

Reputation: 222

Ipad displaying UIUserInterfaceIdiomiPhone instead of UIUserInterfaceIdiomPad

I have developed an universal app which is working fine in our iphone and ipad. But the app is displaying iphone UI in one of the other ipad. That ipad is jailbroken and the iOS version is 4.3.2. For checking this I have added an alert inside the condition 'if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)'. Which always return UIUserInterfaceIdiomiPhone instead of UIUserInterfaceIdiomPad in that ipad.

how to solve this issue? Any help is appreciated..

Thanks..

Upvotes: 2

Views: 1029

Answers (3)

cider
cider

Reputation: 407

If this doesn't work:

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {...}

Then you should try changing the target's build configuration: Make sure that "Targeted Device Family" is set to "iPhone/iPad".

Good luck!

Upvotes: 2

Akshay
Akshay

Reputation: 5765

That certainly has something to do with the device being jail-broken. UI_USER_INTERFACE_IDIOM() is one of the most highly used APIs and works absolutely fine.

Upvotes: 0

Martin Ullrich
Martin Ullrich

Reputation: 100661

Did you install RetinaPad?.. Sugegstion: update to a new version (4.3.3) and JB again

Upvotes: 0

Related Questions