0
votes

It is the general way of implementing/connecting views using viewControllers ( as follows ).

  1. Declare IBOutlet variables in .h file of your view controller.
  2. Open .xib of your view controller.
  3. tap on Files Owner & then connect accordingly.

I want to do in reverse mode ( For XCode4 )

  1. I will give a name using Interface builder ( XCode 4 )
  2. Then save .xib file.
  3. .h file of that view controller will be automatically updated with Outlet Variables

Is it possible? How?

1

1 Answers

3
votes

If you want do declare your variables through the embedded Interface Builder you need to open your header file in the assistant. You'll find it in the upper right corner. Should be the middle button of those three...

Next you select your Hader-File if it's not opened yet and then connect your Outlets to the place you wish in the Header-File.