• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
My app thinks it is a phone. Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My app thinks it is a phone. Why?


  • Subject: My app thinks it is a phone. Why?
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sun, 06 May 2012 12:15:58 +0700

My app (iOS 5.1) has a xib called MainWindow.xib which does NOT contain a window, just two objects, one of this is an UIApplicationDelegate.

This UIApplicationDelegate has:

- (void)applicationDidFinishLaunching:(UIApplication *)application
{
	NSLog(@"%s %u",__FUNCTION__,[[UIDevice currentDevice] userInterfaceIdiom]);
	...
}

When I run this in iPad 5.1 Simulator, it prints "0" = UIUserInterfaceIdiomPhone.

Why does this thing delude itself being a phone?

(This was an iPhone project, which I am now trying to make universal).


Kind regards,

Gerriet.




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: My app thinks it is a phone. Why?
      • From: David Duncan <email@hidden>
  • Prev by Date: Bizarre iMovie behavior
  • Next by Date: Re: [SOLVED-ish] Bizarre iMovie behavior
  • Previous by thread: Re: [SOLVED-ish] Bizarre iMovie behavior
  • Next by thread: Re: My app thinks it is a phone. Why?
  • Index(es):
    • Date
    • Thread