简体   繁体   English

创建通用情节提要场景xcode

[英]Create common storyboard scene xcode

When using story boards for iOS development, how would you create a common background for every scene? 使用故事板进行iOS开发时,如何为每个场景创建通用背景? As far as I can tell, I have to copy and paste common elements for every new scene. 据我所知,我必须为每个新场景复制并粘贴通用元素。

Thanks, Adam 谢谢亚当

I don't think you can do it in InterfaceBuilder, but UIAppearance seems like it's designed for this sort of thing. 我认为您不能在InterfaceBuilder中完成此操作,但是UIAppearance似乎是为此类事情设计的。 Google it or check out WWDC 2011 session 114 . 搜索它或查看WWDC 2011会议114

您可以创建BaseViewController并以编程方式在其中添加所有其他VC的公用详细信息,并从同一VC派生所有其他VC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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