简体   繁体   English

故事板中的Xib视图控制器

[英]Xib view controller in storyboard

I'm trying to use this repository from Github and to use it you must have a xib file whether it's in your storyboard or not and I wanted to know how I can do to have my view controllers acting like xib but in my storyboard. 我正在尝试使用来自Github的此存储库 ,并且要使用它,无论它是否在情节提要中,您都必须具有一个xib文件,并且我想知道如何做才能使我的视图控制器像我的情节提要一样出现在我的情节提要中。

I'm sorry if I'm not clear enough but just tell me in the comments and I'll try my best to be clearer. 很抱歉,如果我还不够清楚,请在评论中告诉我,我会尽力使自己更加清晰。

Kindest regards, 最亲切的问候,

All you have to do is in your project select New File from the file menu or by right clicking in your file navigator. 所有您需要做的是在项目中,从文件菜单中选择“ New File ,或在文件导航器中单击鼠标右键。 On the popupWindow select iOS on the left (This will let you see all the options) find the "View Option". 在popupWindow上,选择左侧的iOS(这将使您看到所有选项),找到“查看选项”。

在此处输入图片说明

and this will create a View.Xib file. 这将创建一个View.Xib文件。 This is just the UI file for a view. 这只是视图的UI文件。

在此处输入图片说明

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

相关问题 从Storyboard用Xib调用View Controller? - Call view controller with xib from storyboard? 在情节提要中链接“表视图控制器”以加载.xib? - Linking a “Table view Controller” in storyboard to load an .xib? 使用storyboard或xib作为单视图控制器? - Use storyboard or xib for single view controller? 如何将基于xCode xib的视图控制器转换为情节提要视图控制器? - How to convert a xCode xib based view controller to a storyboard view controller? 如何使用xib视图控制器推送情节提要视图控制器 - how to xib view controller push a storyboard view controller 在不使用代码的情况下将xib UIView添加到storyboard视图控制器 - add xib UIView to storyboard view controller without using code 如何在没有xib或情节提要vc标识符的情况下制作视图控制器? - How to make a view controller without a xib or a storyboard vc identifier? 如何在xib或情节提要上使用xib加载自定义视图 - how to load custom view with xib on a xib or storyboard 自定义视图(xib)在情节提要板上不可见 - Custom view (xib) not visible on storyboard 如何在不使用导航控制器或导航栏的情况下从Xib返回main.storyboard中的视图控制器? - How to return to view controller in main.storyboard from a xib without using navigation controller or navigation bar?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM