Tuesday, 23 June 2015

Overview of IOS , IBOutlets and IBactions

Overview of IOS , IBOutlets and IBactions

Before going further read my last tutorial:Learn Objective C

You already know about that Iphone run on operating system which is IOS.
IOS is mobile operating system manages both hardware from Battery,memory to camera and software from Tableview to Animations.
IOS also run IPod and Ipad to manage functions.IOS was released in 2007 but Third party application developement with IOS Standard development kit is available to developer in 2008.

Why IOS is Popular?

IOS is popular due to its customar satisfaction features,advantages to performance and many others.Any customar has first preference to buy IPhone but that is different thing due to its cost some can buy.Where features come you can manage cost.
One other thing is that Any update Announced by Apple available to all IOS devices.Now,more then 80% devices are run on latest update to apple IOS 8 and Will be IOS 9.
Also User Interface is also good.It can not be beat by any other mobile operating system.

Why IOS is Prefer?

IOS is very stable towards the application run.Whenever your application run IOS provide the good performance and Resources(memory,cpu etc.). 
IOS provide the speed to run application.Your application can not wait for deallocation of objects while stopping the application.
IOS do not share your privacy with other third party.
IOS provide proper security.A user can share their bank related information on Apple Pay and do transactions.
If i counting the features Of IOS whole time will be passed. IOS has many uncountable features.

Quick look History of IOS


I started with IOS 4 runs on Iphone 3G phones.
You can check the history of IOS on internet. Now i describe only latest IOS 9 some features:

1.)Power Mode: With IOS 9 you can get 1 hour extra to their daily battery life.Apple make smarter to IOS 9 by adding the capabilty to alert by where your application requires less battery by adding low battery mode.


2.)MultiTasking: With the help of spilt view now you can run two application at same time without any interrupting that is one of biggest features.

Many other features like more supported in apple pay,smarter siri,spotlight,music and news app and much more.


Language used to develop IOS apps

Objective C and Swift. 

Objective C can be learned from here:Click here

swift has latest update announce by appple is swift 2.0 and it will be open source.
Due to demand of people i will also write swift tutorial side by side who having ios application development sharp background can learn.


IBoutlet and IBAction


Final output will be:





IBoutlet: IB means Iterface builder.The easiest way in IOS to add Infront of property data type IBoutlet so that property shows in Storyboard or xib file.

There are two ways to write IBOutlet by manually and tell Xcode.

By manually : 

Just in interface write like below:


IBoulet NSString *studentname;




Tell Xcode: When you are expert in making IBoutlet then just by drag and drop with ctrl button. show in below screenshoot.







First click on assitant editor at top right corner.In ios you can do coding with user interface side by side.

Just click on control and press ctrl button with along side mouse towards viewcontroller.h interface.

Do it same for label.


For button do the same but select action. 



Now the code will be 

In viewcontroller.h

property (strong, nonatomic) IBOutlet UITextField *textfield;
@property (strong, nonatomic) IBOutlet UILabel *label;


IBAction: It is same like to do IBoutlet but has action method with touchupinside like method.

- (IBAction)click:(id)sender;



In view Controller.m


@synthesize textfield=_textfield;
@synthesize label=_label;
- (IBAction)click:(id)sender {
    self.label.text=self.textfield.text;
}

You can change background from there :







Source Code available here: Download here

I hope you like my this tutorial if you have and query can mail me and comment here and tutorial on swift will also published soon.


My next tutorial will be: View controller and application life cycle.

No comments:

Post a Comment