Friday, 20 February 2015

Objective-c:-Method,IBOutlet,IBAction.

What is a Method?
                              Method is a block of code that runs in response to a message,which performs specific functionality.

In objective C method definitions begin with a dash sign(-)and a plus sign (+);

Dash sign(-)-Indicates that it's an instance level method,An instance method can only be accessed by the instance of the class where method is defined.

Plus sign(+)-Indicates that it's an class level method,which can be accessed anytime just by simply referencing the class.

IBOutlet:
             IBOutlet is used to define a property to the UIComponent in the Xib File.

IBAction:
              IBAction is used to define a method to the UIComponent in the Xib.

No comments:

Post a Comment