Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

XCode Tutorial: Detecting The Users Device

Loading...

Sign in or sign up now!
14,332
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 7, 2009

If you wanna use the camera from the iPhone, people who have iPod touches might click it and keep trying and trying, but fail to get the camera working ;) So now, tell them their device isn't supported! How easy is that? If it's an iPhone, continue, if it's and iPod touch, make a UIAlertView.

UIAlertView Tutorial: http://www.youtube.com/watch?v=PK1s5-8Q5pI

  • likes, 4 dislikes

Link to this comment:

Share to:

Top Comments

  • How did you learn this? what book?

  • Whether your apps are "free" or "pay"... or installed on "your iPhone" or "anyone's iPhone" or "in the app store"... you have to pay the $100.

    And it's NEVER a "1 time fee"... it's $100 per year fee.

    The only time there's "no fee" is if you only run your apps in the Simulator on your Mac Desktop computer.

see all

All Comments (39)

Sign In or Sign Up now to post a comment!
  • I couldn't post the url to a solution though but checkout erica/uidevice-extension/blob/­master/UIDevice-Hardware.m on github

  • This code isn't right. model will always render iPhone. Logically you should have asked yourself why does my iPhone 4 not have a version number but all else does.

  • haha, puberty voice!

  • when I was 14 (3 years ago) I was learning Visual Basic. you fellow started with Objective-C ?! I wish you good luck making fortunes in the future ;) I'm visiting your site now, probably subscribing to your feed

  • Voice breaking fail

  • sweet background were'd you get it?

  • @vampire5003 Try to put 1 of your "free apps" in the app store... or even on any iPhone... without paying the $100/year fee to Apple. You'll never do it.

  • @YourBiggerTube i agree totally, and i have got a year left of app store membership, but somehow i managed to be able to add apps to my ipod be4 i was even signed up? any reasons why? or is this everyone?

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more