         super.init(coder: aDecoder)
 
         let notificationCenter = NSNotificationCenter.defaultCenter()
-        notificationCenter.addObserver(self, selector: "performWatchAction:", name: NATHiBeaconsDelegate.NATHiBeaconsWatchNotificationName, object: nil)
+        notificationCenter.addObserver(self, selector: #selector(performWatchAction(_:)), name: NATHiBeaconsDelegate.NATHiBeaconsWatchNotificationName, object: nil)
 
         // We need to assign self as a delegate here.
         monitoringOperation.delegate = self

                indexPaths = indexPaths ?? []
                indexPaths!.append(NSIndexPath(forRow: row, inSection: NTSectionType.DetectedBeacons.rawValue))
            }
            row++
        }

        return indexPaths

                indexPaths = indexPaths ?? []
                indexPaths!.append(NSIndexPath(forRow: row, inSection: NTSectionType.DetectedBeacons.rawValue))
            }
            row += 1
        }

        return indexPaths
