没有“显示”在Xcode 6.1中的segue动作列表中 [英] No "show" in the segue action list in Xcode 6.1

查看:160
本文介绍了没有“显示”在Xcode 6.1中的segue动作列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是swift和IOS开发的新手。

I'm new to swift and IOS development.

系统信息:Xcode 6.1发行说明
OS X 10.10.1

system information: Xcode 6.1 Release Notes OS X 10.10.1

我的应用有两个查看控制器,ViewA和ViewB,(没有导航控制器),我想通过单击ViewA中的UIButton从ViewA跳转到ViewB。 ViewA已被设置为App中的初始视图控制器。

My app has two view controllers, ViewA and ViewB, (No navigation controller), and I want to jump to ViewB from ViewA by click a UIButton in ViewA. The ViewA has been set as the initial view controller in the App.

按照一些在线指令,我按下了ctrl并在ViewA中拖动UIButton指向故事板窗口中的ViewB。但是,我只得到一个不完整的segue列表(总共只有4个项目)如下所示,其中我看不到show项目。

By following some online instruction, I pressed ctrl and and drag the UIButton in ViewA to point to ViewB in the storyboard window. However, I got only a incomplete segue list (has only 4 item in total) as the following, in which I couldn't see the "show" item.

动作Segue

modal
custom

Action Segue push modal custom

在旧版本中可能看起来像这样,但在Xcode 6.1中可以这样做。

It might looks like that in the old versions, but it is do in Xcode 6.1.

我从其他人那里看到了菜单的一些屏幕副本,他们在动作segue列表中有更多的项目。由于我的segue acton列表中没有show,我使用了custom项。它也帮助我跳转到ViewB,但是在编译时我收到了以下警告。

I saw some screen copies of the menu from the other people, they have much more items in their action segue list. Since no "show" available in my segue acton list, I used the "custom" item. It also helped me to jump to ViewB, but I got the following warning in compiling.

自定义segues必须具有自定义类
不支持的配置自定义segues必须具有客户类

"Custom segues must have a custom class" "Unsupported Configuration Custom segues must have a customer class"

我的问题是:
1)如何在segue动作列表中访问内置show时间?
2)因为到目前为止一切正常,有没有直接获取警告信息?

My questions are: 1) How can I access the build-in "show" time in the segue action list? 2) Since everything works fine by so far, is there any to get ride of the warning message directly?

如果您需要更多信息来确定问题,请不要犹豫,告诉我们。

Please don't be hesitate the let me know if you require more information to identify the issues.

由于我是iOS开发的新手,我的问题可能有些愚蠢,但我确实需要你的帮助。

我感谢你的影响我的问题。

Since I'm new in iOS development, my questions might be kind of silly, but I do need your help.
I appreciate your effects with my questions.

推荐答案

我将逐步推进这个过程:

I'm going to go step by step for the process:


  1. 制作一个新项目。我使用了适用于iPhone的Single View Application。

  2. 在故事板中添加第二个视图控制器(故事板左侧的面板应如下所示)。如果您没有看到面板,请单击故事板左下角的图标。


  1. 将按钮拖到故事板上


  1. 按住控件并从按钮拖动到第二个视图上的空白区域控制器获取此菜单。


  1. 点击show进行制作。


  1. 如果您已经安装了segue,可以通过单击更改其类型。在故事板的右侧,您应该有一个包含segue信息的面板。您可以从此处更改类型。如果您没有看到面板,请单击工具栏上的图标将其拉出。

这篇关于没有“显示”在Xcode 6.1中的segue动作列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆