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
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
@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.
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.
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.
@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.
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
macsimum76 5 months ago
Nothing happend on the iPhone when I was choosing "Build and Run".
PS. I have Xcode for iOS 4.3.
OnniGames 7 months ago
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 11 months ago
@mikestanater5 you have to do if ([[label text] isEqual:@"Mike"]), the text] part is quite important.
macheads101 11 months ago
@macheads101 how come when i enter my name, the "hello" text shrinks in the simulator and reads hello... ?? can you help
joelrockstar19 1 year ago
@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
JailPodiOS5 1 month ago
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 1 year ago
@rgerdisch55 I suggest watching my newer videos on iPhone programming.
macheads101 1 year ago
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 1 year ago
@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 1 year ago
@macheads101 Says that the view outlet is not set. I started again and everything works fine this time. I just missed something.
Mostwantedo 1 year ago
@Mostwantedo Oh, glad you got it working :)
macheads101 1 year ago
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".
macmaster4848 1 year ago
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 1 year ago
@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.
macheads101 1 year ago
@BiopulseEU probably within the next week.
macheads101 1 year ago
If you want to pass filenames or whatever as command line parameters to a c program, how does one do that in Xcode?
tallswede80 1 year ago
@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 1 year ago
@macheads101
is it possible to create an executable binary from terminal? If so, then how?
tallswede80 1 year ago
@tallswede80 if you want to compile C code, run:
gcc mycode.c
macheads101 1 year ago
@tallswede80 you want to use the gcc command to compile:
gcc source.c # compile into a.out
./a.out # run file a.out
macheads101 1 year ago
When your background changes so much, its kind of distracting!
IMPMAC 1 year ago
@IMPMAC i guess, but I like it. It makes me feel like stuff is happening in the background...
macheads101 1 year ago