Starting iPad emulator but Device.Idiom returns Phone. What am I doing wrong?

I'm using Visual Studio for Mac and using the Simulator to test the application.

I have an existing application that was only supporting phones. Now I want to test it with iPad. In Visual Studio under the Simulator drop down I have changed the value from an iPhone to an iPad.

While this starts an iPad simulator (it says so under the simulator window and the dimensions look good) the Device.Idiom property (when called from AppDelegate.cs) returns Phone and not Tablet.

I tried changing the Device Family drop down in the Info.plist file to iPad or Universal but that doesn't change anything.

What am I doing wrong? I really wanted to use the Device.Idiom property to change some things depending on whether the application is running on a phone or a tablet.

Tagged:

Best Answer

  • gilleslebgillesleb ✭✭
    Accepted Answer

    I found it out. I had to add iPad under Targeted device family in the Source tab of the Info.plist file.

Answers

  • gilleslebgillesleb Member ✭✭
    Accepted Answer

    I found it out. I had to add iPad under Targeted device family in the Source tab of the Info.plist file.

Sign In or Register to comment.