Mateus
Mateus

Reputation: 2668

Displaying XIB on UIView!How can i set it?

How can i display a XIB interface on an UIView!Please be simple!

Upvotes: 0

Views: 168

Answers (1)

Michael Dautermann
Michael Dautermann

Reputation: 89509

a UIView interface built in a XIB can be displayed by linking that XIB with a UIViewController.

Check out the Apple documentation About Windows and Views.

And you can see how a XIB is set up just by creating a new project in XCode and choosing "Single View Application" as a template. If you're using XCode 4.2, the "MainStoryboard.storyboard" file appears to be the new name for a XIB file.

Which reminds me I should go check out the WWDC session online that talks about this -- and you should too. If you're a registered developer, it's free to check out! My educated guess is that the "Designing User Interfaces for iOS and Mac OS X Apps" session (at https://developer.apple.com/videos/wwdc/2011/?id=110) is the one you want to see.

Upvotes: 2

Related Questions