Objective-C iPhone Programming Lesson 1 | Part 2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,390
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 14, 2010

I go over more of our hello world app.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (macheads101)

  • I was playing around with the code in this app so that if you entered the name "Mike" a second label would say "Access Granted" and if any other text was entered it would say "Access Denied" I tried label==@"Hello Mike" but that didn't work. I also tried "isEqualToString:" but that was even worse because xcode wouldn't even autocomplete the "isEqualToString" part because it didn't even know that command existed. Please help. Thanks

  • @mikestanater5 you have to do if ([[label text] isEqual:@"Mike"]), the text] part is quite important.

  • Hey for some reason whenever I launch the app it just shows up as a gray background. (not the iPhone, just the app) If you could help, that'd be great.

  • @rgerdisch55 I suggest watching my newer videos on iPhone programming.

see all

All Comments (24)

Sign In or Sign Up now to post a comment!
  • @joelrockstar19 You need to make the label bigger select the label in interface builder and drag the little blue point on the right side until its across the screen. That should give it plenty of room

  • I tried exactly this, and when I do build and run, it says "No launchable executable present at path." Then when I'm in interface builder, I did "Build and Go in Xcode" It works, but then there is an error that says "Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain" What should I do? p.s. I have Xcode 3.2.6

  • Nothing happend on the iPhone when I was choosing "Build and Run".

    PS. I have Xcode for iOS 4.3.

  • @macheads101 how come when i enter my name, the "hello" text shrinks in the simulator and reads hello... ?? can you help

  • @Mostwantedo Oh, glad you got it working :)

  • @macheads101 Says that the view outlet is not set. I started again and everything works fine this time. I just missed something.

Loading...

Alert icon
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