Add subview from a xib or another scene with storyboard

前端 未结 2 1118
清歌不尽
清歌不尽 2020-12-04 17:09

I\'m new to iOS and Xcode. I can\'t figure out how to design a separated view and make it be added into the main UIViewController using storyboard.

I did different a

2条回答
  •  一整个雨季
    2020-12-04 17:51

    In storyboard, drag and drop a view controller. The view controller come with a main view. Select that main view by clicking outside of the added view controller and then clicking in the center of it. Now, just drag a uiview or whatever into that main view just like you did with IB.

提交回复
热议问题