[NSObject: AnyObject]? ' n'a pas de membre nommé 'subscript' dans Xcode 6 Beta 6

Je suis la création d'une application dans Xcode 6 Beta 6 à Swift et je reçois cette erreur:

[NSObject : AnyObject]?' does not have a member named 'subscript'

Je n'ai aucune idée de comment résoudre ce problème. J'ai essayé de regarder ce [NSObject : AnyObject]? "n'ont pas un membre nommé "indice" erreur dans Xcode 6 beta 6 mais je ne comprends toujours pas comment cela résout le problème. Si quelqu'un pouvait m'expliquer, ce serait très gentil. Si vous voulez voir mon code, le voici: c'est

import UIKit
class TimelineTableViewController: UITableViewController {
override func viewDidAppear(animated: Bool) {
if ((PFUser.currentUser()) != nil) {
//Create an UIAlertController if there isn't an user
        var loginAlert:UIAlertController = UIAlertController(title: "Sign Up/Log In", message: "Please sign up or log in", preferredStyle: UIAlertControllerStyle.Alert)
//Add a textView in the Log In Alert for the username
        loginAlert.addTextFieldWithConfigurationHandler({
textfield in
textfield.placeholder = "Your Username"
})
//Add a textView in the Log In Alert for the password
        loginAlert.addTextFieldWithConfigurationHandler({
textfield in
textfield.placeholder = "Your Password"
textfield.secureTextEntry = true
})
//Place the user-input into an array and set the username and password accordingly for Log In
        loginAlert.addAction(UIAlertAction(title: "Login", style: UIAlertActionStyle.Default, handler: {
alertAction in
let textFields:NSArray = loginAlert.textFields as NSArray
let usernameTextfield:UITextField = textFields.objectAtIndex(0) as UITextField
let passwordTextfield:UITextField = textFields.objectAtIndex(1) as UITextField
PFUser.logInWithUsernameInBackground(usernameTextfield.text, password: passwordTextfield.text){
(user:PFUser!, error:NSError!)->Void in
if ((user) != nil){
println("Login successfull")
}else{
println("Login failed")
}
}
}))
//Place the user-input into an array and set the username and password accordingly for Sign Up
        loginAlert.addAction(UIAlertAction(title: "Sign Up", style: UIAlertActionStyle.Default, handler: {
alertAction in
let textFields:NSArray = loginAlert.textFields as NSArray
let usernameTextfield:UITextField = textFields.objectAtIndex(0) as UITextField
let passwordTextfield:UITextField = textFields.objectAtIndex(1) as UITextField
var sweeter:PFUser = PFUser()
sweeter.username = usernameTextfield.text
sweeter.password = passwordTextfield.text
sweeter.signUpInBackgroundWithBlock{
(success:Bool!, error:NSError!)->Void in
if !(error != nil){
println("Sign Up successfull")
}else{
let errorString = error.userInfo["error"] as NSString
println(errorString)
}
}
}))
}
}
override func viewDidLoad() {
super.viewDidLoad()
//Uncomment the following line to preserve selection between presentations
    //self.clearsSelectionOnViewWillAppear = false

//Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    //self.navigationItem.rightBarButtonItem = self.editButtonItem()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
//Dispose of any resources that can be recreated.
}

Ici est où l'erreur se produit:

[NSObject: AnyObject]? ' n'a pas de membre nommé 'subscript' dans Xcode 6 Beta 6

S'il vous plaît dites-moi pourquoi cela se produit. Merci!

source d'informationauteur Steve Sahayadarlin