Added: 1 year ago
From: macheads101
Views: 4,319
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (24)

Sign In or Sign Up now to post a comment!
  • 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.

  • 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.

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

  • @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

  • 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.

  • Hey, I'm encountering a problem. Or I'm not sure - maybe I missed something. So when I Run it, the simulator opens the application, but crashes right after. I mean the app crashes, not the whole thing. I can launch the application as many times as I want but it just keeps coming back. But anyway, thanks for the great tutorial, subbed, and please help me cos I'm a total nooby ;)

  • @Mostwantedo what shows up in the Xcode console? Do tell, go back into the main Xcode window and press Shift+Command R. PM me what it says and I will get back to you to see if I can help.

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

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

  • Another way to make it say Hello [name here] is just to open Interface Builder make "Hello" blank and smaller and move to the right, and make a new label on the left with "Hello".

  • Great tutorials... I will be looking forward to seeing your next instalment in this great X-Code tutorials series.

    Also I am trying to learn objective C too help me with my development of iPhone applications. Do you know of any good books/ sites/ video's that I can get my hands on, that will help me learn objective C in a very easy and interactive way?

  • @ByteReviews I used Cocoa programming for mac OS X. It's a mac programming book, but I found it easy to apply to the iPhone after a bit of time spent inspecting the iPhone API documentation.

  • @BiopulseEU probably within the next week.

  • If you want to pass filenames or whatever as command line parameters to a c program, how does one do that in Xcode?

  • @tallswede80 I am not sure that Xcode supports that. If you are just using argc, and argv, I would create an executable binary, and run it from terminal.

  • @macheads101

    is it possible to create an executable binary from terminal? If so, then how?

  • @tallswede80 if you want to compile C code, run:

    gcc mycode.c

  • @tallswede80 you want to use the gcc command to compile:

    gcc source.c # compile into a.out

    ./a.out # run file a.out

  • When your background changes so much, its kind of distracting!

  • @IMPMAC i guess, but I like it. It makes me feel like stuff is happening in the background...

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