iOS Programming Introduction

By | 27/01/2012

 

iOS is an Apple’s mobile operating system. This operating system is initially developed and used in iphone, later iOS is used in all apple devices like iphone, ipad and apple TV.

Name iOS is used by CISCO for its router operating system, then apple got the trademark of “iOS” for their iphone operating system. iOS is restricted to use in non apple devices.

We can develop the iOS applications, there are plenty of 3rd party iOS development tools are available.

  • First of all you need Apple machine(Mac OS) to compile and run the ios programs
  • You have to signup as Apple developer for free, at the time of launching a new application you have to pay $99 dollars. Apple developer registration
  • Registered apple developers can only able to get latest SDK files, library files, iphone simulators for their application developement

http://www.developer.apple.com/devcenter/ios/index.action

 

After registered as a apple developer, the following webpage will be shown up.

 

The following resources are only for apple developers, Choose iOS from Dev Centers option. By selecting this option it will redirect you to the below page.

 

Download Xcode 4 to develop the apple applications, by using this tool we can easily create the iOS programs. Their is a plenty of options and helps are available for new developers. Xcode4 will have the recent IDE ifles, simulators for iphone.

 

To launch the application world wide, we need to signup with premium account of $99 worth. By paying only our app will be shown up in apple market (website)

 

www.developer.apple.com/programs/ios/

 

 

iOS Code for Simple program “Hello Tobby”

The following program will display “Hello Tobby” as output in apple devices.

(void)viewDidLoad {

[super viewDidLoad];

CGRect frame = CGRectMake(10, 10, 300, 25);

UILabel *hellotobby = [[UILabel alloc] initWithFrame:frame];

hellotobby.text = @”Hello tobby!”;

hellotobby.textColor = [UIColor blueColor];

hellotobby.textAlignment = UITextAlignmentCenter;

[self.view addSubview:hellotobby];

[helloLabel release];

}

UILabel *hellotobby is used to create new object “hellotobby”

[self.view addSubview:hellotobby]; will display the label.

Test this above code on your apple devices.

Post By prasad (110 Posts)

Website: →

Connect

About prasad

Prasad K has written 110 post in this blog.

Leave a Reply