简体   繁体   English

Xcode 6.1 componentsSeparatedByCharacterInSet编译器错误

[英]Xcode 6.1 componentsSeparatedByCharacterInSet Compiler Error

to be able to deploy an App onto an iPhone with IOS 8.1 I updated Xcode 6.0.1 to 6.1. 为了能够使用IOS 8.1将应用程序部署到iPhone,我将Xcode 6.0.1更新为6.1。

With this step I got a couple of compiler errors, eg 通过这一步,我遇到了一些编译器错误,例如

var lines : NSArray = mydata.componentsSeparatedByCharactersInSet(NSCharacter.newlineCharacterSet())

Error: 错误:

Cannot convert the expression's type '$T6??' 无法转换表达式的类型'$ T6 ??' to type '[AnyObject]' 键入“ [AnyObject]”

What is '$T6?? 什么是“ $ T6”?

Figured out that I need an explicit cast as [NSArray] 弄清楚我需要显式转换为[NSArray]

var lines : NSArray = mydata.componentsSeparatedByCharactersInSet(NSCharacter.newlineCharacterSet()) as [NSArray]

But still don't know, what '$T6??' 但还是不知道,'$ T6?' stands for. 代表。 Google did not help. Google没有帮助。

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

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