Objective-C iPhone Programming Lesson 1 | Part 2

preview_player
Показать описание
I go over more of our hello world app.
Рекомендации по теме
Комментарии
Автор

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

macheads
Автор

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

macheads
Автор

@Mostwantedo Oh, glad you got it working :)

macheads
Автор

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

gcc source.c # compile into a.out
./a.out # run file a.out

macheads
Автор

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

bytes
Автор

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

macheads
Автор

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

macheads
Автор

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

macheads
Автор

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

macheads
Автор

@BiopulseEU probably within the next week.

macheads
Автор

@tallswede80 if you want to compile C code, run:
gcc mycode.c

macheads
Автор

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

tallswede
Автор

@macheads101

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

tallswede
Автор

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.

rgerdisch
join shbcf.ru