问题标签 [xcode6-beta6]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
732 浏览

ios - 重命名 UIViewController 类后界面生成器中的未知类错误

我被这个问题难住了。我已经搜索并尝试了有关此错误的所有其他解决方案。

它试图查找的类的原始名称是“difficultyViewController”,但我在代码中将其重命名为“HomeViewController”,现在出现此错误。故事板中的视图指向正确的类(HomeViewController),但我仍然收到此错误。有谁知道如何解决这个问题?

0 投票
2 回答
197 浏览

ios - Connect IBOutlet to universal Storyboard Xcode6

Using Xcode 6 beta 6 developing an iOS application that is universal application. I am facing an issue with connecting IBOutlets and using universal storyboards. If i am using "w any h any" configuration then i am not able to design two different interfaces for iPhone and iPad. if i design using different configurations i.e "w compact h regular" for iPhone and "w regular h regular" for iPad then i am able to design two different interfaces but not able to connect Same IBoutlet to both of them. If i connect it to iPhone configuration i.e "w compact h regular" first it runs smooth but as soon as i connect it to iPad configuration i.e "w regular h regular" then the connection with iPhone get disconnected automatically. Pls help me out i am not able to get a solution i have searched a lot on google but couldn't find anything as not many resources are available on this.

EDIT If i connect IBOutlets to the view in "w any h any" configuration and then switch to iPhone configuration and add constraints there storyboard displays some errors like conflicting constraints. Pls see the image

error when added constraints in

This is for iPhone configuration after connecting the outlets in "w any h any" and adding constraints in iPhone configuration

0 投票
0 回答
166 浏览

ios - addPersistentStoreWithType 方法奇怪的编译器错误

使用 Xcode 6 beta 6 我在这一行得到了以下编译器错误:

论据:NSSQLiteStoreType

“NSString”与“String”不同

addPersistentStoreWithType方法需要String,但预定义的值具有NSString类型。

我能做些什么?

在此处输入图像描述在此处输入图像描述

更新

我现在用这个试过了,还是一样。

现在链接器错误如下所示:

在此处输入图像描述

0 投票
2 回答
25556 浏览

ios - 没有参数的函数的调用错误中参数 #1 的参数丢失。迅速

我正在使用 xcode 6 beta 6,但对于没有参数的函数,我得到了这个奇怪的错误。

这是功能

这是电话

这是一个错误还是我在这里做错了什么?

0 投票
1 回答
880 浏览

swift - XCode6 beta 6 Swift 编译器错误

我开始观看用户 Brian Advent 的 YouTube Swift 教程,特别是关于使用 Parse https://www.youtube.com/watch?v=__zMnlsfwj4的远程推送通知的教程。下载示例应用程序并在 Xcode 6 beta 6 上打开后,编译器在以下代码中显示一个错误:

错误在 AppDelegate.swift 的下面这一行中

显示的消息是“AnyObject?” 没有名为“isEqualToNumber”的成员

有关如何解决此问题的任何提示/帮助?我会很感激的

0 投票
0 回答
71 浏览

swift - XCode6 Beta 6:此类创建语法在 swift 中不再有效吗?

我在这里指的是答案:https ://stackoverflow.com/a/24061386/58129

代码在这里复制:

如果我在 XCode6 beta6 的操场上尝试它,它会引发异常:

在此处输入图像描述

通过调用实例化一个类是否不再有效T.self()

0 投票
1 回答
889 浏览

ios - UITableViewCell 在使用 xcode6 beta6 界面生成器的 iOS7 和 iOS8 模拟器中表现不同

请看下面同一个应用程序中的3个表格视图单元格,界面生成器中单元格的高度为54,边框是在代码中使用CAShapeLayer创建的,高度为44。由于我在项目开发过程中从xcode5切换到xcode6,所以uitableviewcell 的一部分是在 xcode5 中创建的,一部分是在 xcode6 中创建的,还有一些单元格是在 xcode5 中创建的,后来在 xcode6 中进行了更改。

图 1。使用xcode5创建,所需的样式 uitableviewcell 内置在 xcode5 界面生成器中

图2。使用xcode6 beta6创建,iOS8模拟器显示,disclosure indicator错位,文字 偏移xcode6 beta6内置的uitableviewcell,在iOS8模拟器中显示

图 3。使用xcode6 beta6的 image2 的相同单元格,但在 iOS7.1 设备中运行,disclosure indicator放错 了位置xcode6 beta6内置的uitableviewcell,在iOS7.1设备中显示

我在界面生成器中比较了 uitableviewcell 的所有设置,发现没有差异。

而我对比了xxx.storyboard的源文件,终于得到了不同点:

case1 : 'tableViewCell' 标签,xcode5版本是:

case2 : 'tableViewCell' 标签,xcode6 beta6版本在下面,注意,创建新的 uitableviewcell 时缺少 < rect key="frame" ...>

case3:image2和image3中的场景是在xcode5中创建的uitableviewcell,默认高度为44,在xcode6 beta6中修改高度为54,源码为:

作为结论,似乎 xcode6 beta6 没有处理 .storyboard 文件中的 <rect key="frame" ...> 标签,并且会导致 uitableviewcell 错位。

补充:以上所有场景,代码都实现了heightForRowAtIndexPath,返回54。

我的问题是

  1. 我没有找到如何放置disclosure indicator在与 xcode5 相同的位置

  2. < rect key="frame" ...> 的缺失是一个错误还是被 xcode6 中的其他标签替换?可能与 iOS8 中的单元格自动调整大小功能有关?

  3. 是否有其他解决方案可以使 uitableviewcell 正确?我目前正在手动修改 .storyboard 文件以使用 xcode6 beta6 为每个新创建的 uitableviewcell 添加 < rect key="frame" ...> 标签,这很容易出错。

谢谢。

0 投票
2 回答
756 浏览

swift - 如何在 swift 中修复“未声明的类型 IKImageView”错误

这是错误信息

在此处输入图像描述

我已经导入Foundation,但它没有解决问题。我错过了什么进口?

0 投票
3 回答
5772 浏览

swift - 任何对象?没有名为“objectAtIndex”的成员

如果尝试获取字符串对象,则会在(Xcode6 BETA 6)上出错:

print 永远不会被调用,导致错误。任何人的想法?

0 投票
1 回答
215 浏览

swift - xcode beta 6 精灵套件?

我刚刚更新到 xCode beta 6。在 beta5 中一切正常,但在 beta 6 中必须改变一些东西。我加了很多“!” 在我的代码中。无论如何,我的项目是小游戏。完成关卡(赢或输)后,我想调用 skscene。

代码在 mainviewController 中:

Won.swift 文件是:

此代码在 beta 5 中有效,但在 beta6 中无效。此外,我将 uikit、avfoundation、spritekit 基础重新添加到项目中。并检查媒体文件“mp3”或图像是否存在于捆绑资源中......该项目运行完美,没有任何错误或警告。但是 Skscene 部分不起作用。我还尝试设置断点来跟踪它的运行方式。该过程继续进行,但从未进入“Won.swift”文件。

有什么建议吗?谢谢你。