iOS Developerz

iPhone & iPad Application Development

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About Us
  • Blog
  • FB Friends Quiz for iPhone
  • FB Friends Quiz Lite Live in AppStore
  • Lottery News for iPhone
  • Relationship Finder for iPhone

Tag Archives: running

How to find out if application is running on iPhone or iPad?

Posted on May 14, 2011 by admin
Reply

This snippet deals with finding out whether application is running on iPhone or ipad…

 

Just insert the code given below at the place you want to check

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
		NSLog(@"ipad");
	}
	else {
		NSLog(@"iPhone");
	}
Posted in Snippets | Tagged Application, iPad, iPhone, running, UIUserInterfaceIdiomPad, UI_USER_INTERFACE_IDIOM() | Leave a reply

Recent Posts

  • Twitter suffers site-wide outage
  • Nintendo will not restrict used games on Wii U console
  • Research in Motion trims jobs to save $1 billion this year
  • HTC’s One Series style Windows Phone 8 line-up leaks
  • US cloud storage player Box comes to the UK
  • News In Brief: One More Thing: Oracle chief buys himself an island
  • iPhone 5 smaller docking port gets ever more likely
  • Huawei Ascend with Windows Phone 8 confirmed
  • Buying Guide: Best RAM: 10 memory kits reviewed and rated
  • Nokia: we’re committed to Windows Phone 7

Categories

  • Free PromoCodes
  • Gadgets
  • General
  • Our Apps in App Store
  • Snippets
  • Technology News
  • Tutorials

Archives

  • June 2012
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
Proudly powered by WordPress