WYS
WYS

Reputation: 1647

Storyboard add viewcontroller's view into another viewcontroller iOS5+

Anyone know if it is possible to create your views in the storyboard which can be used for a main view?

I have tried instantiating my viewcontroller with the identifier and then adding the view from the viewcontroller, but the frame isn't the same as the frame I used in the storyboard.

I know it is possible to use the container view in the storyboard. But I cant use that in iOS 5.0.

Upvotes: 0

Views: 83

Answers (1)

Sadia
Sadia

Reputation: 462

Do not create viewcontroller in storyboard. Create a separate xib file then instantiate controller using xib and add the view as subview in main view.

Upvotes: 1

Related Questions