title: Save & Retrieve TableViewCell checkmark using NSUserDefaults in Swift
body: <p>I am trying to save and retrieve tableViewCell checkmark using NSUserDefaults.My partial code as below.From the code,I can able to select or deselect cell using UITableViewCellAccessoryType.I am not familiar using NSUserDefaults in Swift.Please,someone point me the direction...</p>
  
  <pre><code>    override func viewDidLoad() {
      super.viewDidLoad()
      self.myTableView.allowsMultipleSelection = true
      let userDefaults = NSUserDefaults.standardUserDefaults()
      }
  
  func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
      tableView.cellForRowAtIndexPath(indexPath)?.accessoryType = UITableViewCellAccessoryType.Checkmark
      }
  
  func tableView(tableView: UITableView, didDeselectRowAtIndexPath indexPath: NSIndexPath) {
      tableView.cellForRowAtIndexPath(indexPath)?.accessoryType = UITableViewCellAccessoryType.None
      }
  
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
      let cell = tableView.dequeueReusableCellWithIdentifier("MyCell", forIndexPath: indexPath) 
      cell.textLabel!.text = myItems[indexPath.row] as? String
      cell.selectionStyle = .None
      cell.tintColor = UIColor.greenColor()
  
      return cell
  }
  </code></pre>
  
  <p>Thanks in Advance.</p>