Create list object Swift
<p>:I have problem. I create list doctor show firstname and lastname. How objects to the listdoctor</p>

<pre><code> func autoCompleteTextField(textField: MLPAutoCompleteTextField!, possibleCompletionsForString string: String!, completionHandler handler: ([AnyObject]!) -&gt; ()) {

    let  appDelegate: AppDelegate = (UIApplication.sharedApplication().delegate as! AppDelegate)
    var requestParameters: [NSObject:AnyObject] = [NSObject: AnyObject]()
    requestParameters["name"] = textField.text
    // Wykonanie żądania
    appDelegate.objectManager.getObjectsAtPath("/doctors", parameters: requestParameters, success: {
        (rkoperation: RKObjectRequestOperation!, rkmap: RKMappingResult!) -&gt; Void in

        if let doctors = rkmap.array as? [Doctor] {
            for doctor:Doctor in doctors {
                // show error Experession resolves to an unused I-value
                doctor.firstname
                self.listDoctors.append(doctor.firstname)
            }
        }
        }, failure: {
            (rkoperation: RKObjectRequestOperation!, error: NSError!) -&gt; Void in
            print("Load filed with error: @", error!)
            self.performSelectorOnMainThread(#selector(AppDelegate.showFetchError), withObject: nil, waitUntilDone: true)
    })
    handler(listDoctors)
</code></pre>