简体   繁体   中英

How to load a custom view in storyboard?

I created a new project with storyboard, I wanted to load a custom view (no xib) in the uiviewcontroller, I referenced Creating a View Programmatically , but it doesn't work. Help much appreciated!

According to my understanding,i think you are trying to load a custom view with out xib file in storyboard. Here is the sample code for moving the screen one to two and showing the views.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM