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"];

15 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

Unknown said...

polo ralph lauren
louis vuitton
mcm backpacks
coach outlet online coach factory outlet
cheap football shirts
hermes outlet
michael kors handbags
jerseys wholesale
michael kors outlet
adidas outlet
chanyuan2017.06.19

happy 123 said...

kobe shoes
longchamp bags
jordan shoes
roshe shoes
hermes belt
adidas ultra
lebron shoes
patriots jersey
michael kors uk
yeezy boost

shengda xu said...

ralph lauren outlet
adidas sneakers
michael kors outlet canada
louboutin outlet
nike sneakers
coach outlet online
coach outlet online
pandora charms outlet
versace
pandora charms sale
xushengda0705

GIL BERT said...

cheap basketball shoes
ugg outlet
mont blanc outlet
green bay packers jerseys
ed hardy uk
nike huarache
pandora outlet
cheap basketball shoes
ugg boots
coach outlet online

林磊 said...

20170720 leilei3915
tory burch outlet
mbt outlet
michael kors outlet clearance
true religion outlet store
asics running shoes
adidas nmd
mulberry handbags
kate spade handbags
michael kors outlet online
ugg outlet

1111141414 said...

kobe shoes
fitflops sale clearance
chrome hearts online

fitflops
kobe bryant shoes
kobe bryant shoes


air jordan shoes

shengda xu said...

fendi bags
cat boots
mont blanc pen
ralph lauren outlet
coach outlet store
nfl jerseys
coach handbags outlet
oakley sunglasses outlet
dansko shoes
celine outlet online
xsd7.28

shengda xu said...

true religion jeans
coach outlet store
ralph lauren outlet online
coach factory outlet store
michael kors uk
texans jerseys
ugg outlet online
adidas trainers
michael kors outlet online
giuseppe shoes
xsd7.28