Selector("tap:")
should now be written as #selector(tap(gestureReconizer:))
Also, you should declare tap as func tap(_ gestureRecognizer: UITapGestureRecognizer)
as per the new Swift API Guidelines in which case your selector would then become #selector(tap(_:))
.
More Related Contents:
- didReceiveRemoteNotification not called, iOS 10
- Figure out size of UILabel based on String in Swift
- Swift 3 URLSession.shared() Ambiguous reference to member ‘dataTask(with:completionHandler:) error (bug)
- How to create dispatch queue in Swift 3
- Registering for Push Notifications in Xcode 8/Swift 3.0?
- Trying to handle “back” navigation button action in iOS
- Getting local notifications to show while app is in foreground Swift 3
- Closure cannot implicitly capture a mutating self parameter
- How to program a delay in Swift 3
- Extract RGB Values From UIColor
- Passing arguments to selector in Swift
- Swift 3.0 Error: Escaping closures can only capture inout parameters explicitly by value
- How to use AVCapturePhotoOutput
- Xcode 9 Swift Language Version (SWIFT_VERSION)
- Change Status Bar Background Color in Swift 3
- Difference between DispatchQueue.main.async and DispatchQueue.main.sync
- Swift3 iOS – How to make UITapGestureRecognizer trigger function
- custom interactive transition animation
- Getting client certificate to work for mutual authentication using Swift 3 and Alamofire 4
- Cannot use instance member within property initializer
- Attempt to insert non-property list object when trying to save a custom object in Swift 3
- Swift 3 iOS compatibility
- How to open the Document files e.g(.pdf,.doc,.docx) in ios mobile when a button action using swift3.0?
- Convert request Function to Generic type
- How to read/write from one IOS App set up with firebase, to another firebase database contained in another firebase project? Swift 3
- Swift 3 – dynamic vs @objc
- Quitting app causes error “Message from debugger: Terminated due to signal 9”
- Create Directory in Swift 3.0
- Swift 3: Unrecognized selector sent to instance Xcode 8 [duplicate]
- How to Read Plist without using NSDictionary in Swift?