how to access a variable outside a for loop in swift
<pre><code>do {
    let results = try context.executeFetchRequest(request)

    for result in results as! [NSManagedObject] {
        var  savepassword = result.valueForKey("savePassword")!     
    }
} catch {

}

// what I want is to be able to access the variable out here
// savepasword
</code></pre>