iphone - what does IB do behind the scene when I link IBoutlets/IBActions? -


I am new to Mac Dev, Xcode and IB etc. I understand how to make simple applications and basic dragging and amp; Falling in IB, but I do not know what IB does with objects.

The second question is how to write MVC without using IB?

When you connect two objects in IB to IBOutlet or IBAction This creates certain tags in XIB (which is XML)

When the bundle ( update : Sorry, this is not a bundle, but UINib ) reads NIB (which is compiled XIB), he looks at such tags and after the items they are referring to:

  • Outlet's To set the corresponding property for obtaining this object Uses KVC (key-value coding) for

  • This call addTarget: action: forControlEvents: controls the object.

    You can create and set up the iPhone app without any complication of the IB objects in your code, but in most cases it is not quite intelligent. is.

    And Read -

Comments