0

I am very well know about full form of IB but i want to know the exact use of IBoutlet

what is the use of IBoutlet in ios in iPhone apps ?

Jagat Dave
  • 1,643
  • 3
  • 23
  • 30
  • [Apple Doc: Outlets](https://developer.apple.com/library/ios/documentation/General/Conceptual/CocoaEncyclopedia/Outlets/Outlets.html) – Adil Soomro Feb 10 '14 at 13:31
  • 1
    Adding a button to a view enables user interactivity. An IBOutlet helps connect the button control to the code to make the button accessible programmatically. – Shehbaz Khan Feb 10 '14 at 13:32

2 Answers2

1

You need to declare a variable or a property as an IBOutlet to relate it to the objects that you define in your XIB. ....

Think of the view defined in the XIB as a separate routines that are hidden to your code. The objects - UItextfields, UIImageview etc. that are defined in the XIB are created outside your code (.m ) file IBOutlet allows you to refer to them in your code.

Paulo
  • 1,245
  • 10
  • 8
1

IBOutlet is macro that define variables and methods that are related to in Interface Builder.

Divya Bhaloidiya
  • 5,018
  • 2
  • 25
  • 45