Accessing String key to display fetch image (Swift)
<p>I am trying to correspond the "major" from my dictionary to a picture associated with each major so it displays in the cell.</p>

<pre><code>import Foundation

class ClassRosterModel {
    var studentsRoster = [Dictionary&lt;String, String&gt;] ()
    init () {
        studentsRoster.append(["name": "Kaz, Alex", "number" : "s0834347", "major" : "SE"])
        studentsRoster.append(["name": "O'Rore, Ryan", "number" : "s0835357", "major" : "SE"])
        studentsRoster.append(["name": "Lote, Lote", "number" : "s0835357", "major" : "SE"])
        studentsRoster.append(["name": "Flora, Nico", "number" : "s0748324", "major" : "MA"])
    }
}

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
    let cell = tableView.dequeueReusableCellWithIdentifier("studentCell", forIndexPath: indexPath)

    // Configure the cell...
    cell.textLabel?.text = studentsList[indexPath.row]["name"]
    cell.detailTextLabel?.text = studentsList[indexPath.row]["number"]
    print("Student's name: \(studentsList[indexPath.row]["name"])")
    print("Student's number: \(studentsList[indexPath.row]["number"])")

    return cell
</code></pre>