Friday, March 7, 2008

Hello World App using iPhone SDK

Got my hands dirty with iPhone SDK. Here is the code to display Hello World.

UIView *mainView = [[UIView alloc] initWithFrame: [[UIScreen mainScreen] bounds]];
UITextView *textView = [[UITextView alloc] initWithFrame: CGRectMake(10.0f, 10.0f, 320.0f, 480.0f)];

[textView setEditable:YES];
[window addSubview: mainView];
[mainView addSubview:textView];
[textView setText:@"Hello World"];

7 comments:

Anonymous said...

you've got a lame blog for ten years of experience. you could have atleast make ur own website and blog from all those years of being a programmer

roby said...

Hello,
I've installed the application on my iPhone and when i click on its icon it just expend the icon all over the screen and does nothing.
In order to copy and install the application on the iPhone i used the command line: scp -r Hello World.app root@iPhone:/Applications and ican see the files are being copied and installed on the device:
Hello World
Info.plist
PkgInfo
Am i doing something wrong?
Thanks

marshall said...

It took me a long time to figure out where to paste the code for your Hello World app. Turns out was in the applicationDidFinishLaunching delegate.

Anonymous said...

Good dispatch and this mail helped me alot in my college assignement. Thank you for your information.

Anonymous said...

What a sad excuse of a code.

mokarrom hossain said...

We have huge information about Apps. if you need any help for your iPhone Apps, come check out our website, http://www.taoteapps.com, we have a lot information to help making your mobile deployment a success.

chenlili said...

coach outlet
coach canada
nike roshe run
christian louboutin outlet
louis vuitton bags
nhl jerseys
uggs outlet
adidas boost
gucci belts
cheap uggs
hogan scarpe
ugg australia
louis vuitton
uggs for women
uggs for women
nike trainers
coach factory outlet online
michael kors outlet
ugg outlet online
dallas mavericks jerseys
pandora outlet
canada goose jackets
kobe 8 shoes
louis vuitton
christian louboutin shoes
ralph lauren polo shirts
michael kors outlet online
toms outlet
michael kors outlet
jordan retro 11
louis vuitton
supra for sale
louis vuitton handbags
moncler pas cher
rolex watches
north face jackets
adidas shoes
mont blanc pens cheap
the north face outlet
chenlili20160901