Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction didFlipSwitch(sender: UISwitch) {
- let point = sender.convertPoint(CGPointZero, toView:tableView)
- let indexPath = tableView.indexPathForRowAtPoint(point)
- let object = fetchedResultsController.objectAtIndexPath(indexPath) as! Thing
- thing.flag = sender.on
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement