Value of optional type 'String?' not unwrapped; did you mean to use '!' or '?' Using Parse In Swift 2.0Swift 2.0チェックを解除するには?
iは
価値オプションの種類のエラーが...私は、トピックを発見したが、それはないと同じだと思われる「文字列を?」アンラップされていない。 '!'を使用することを意味しましたか?または '?'?
func textFieldDidEndEditing(textField: UITextField)
{
if textField.text.isEmpty || count(textField.text.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()))
== 0
{
textField.attributedPlaceholder = NSAttributedString(string: Messages.conversationNamePlaceholder.rawValue,
attributes:[NSForegroundColorAttributeName: UIColor.blackColor().colorWithAlphaComponent(0.54)])
}
}
質問を再フォーマットしてください。 – Klevison
オプションの値について学ぶ必要がありますhttp://stackoverflow.com/q/24003642/1959140 –
[オプションの値の型]の重複があります。[[![画像の説明を入力してください] [1]] [1]文字列? 'アンラップされていない。あなたは '!'を使うつもりでしたか?または '?' Parse In Swift 2.0を使用する](http://stackoverflow.com/questions/33159412/value-of-optional-type-string-not-unwrapped-did-you-mean-to-use-or-u) – Slayter