• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using protocol extension to dismiss keyboard on outside tap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using protocol extension to dismiss keyboard on outside tap


  • Subject: Re: Using protocol extension to dismiss keyboard on outside tap
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 18 Apr 2016 01:29:54 -0700
  • Feedback-id: 167118m:167118agrif8a:167118s5YXJOgCoO:SMTPCORP

On Apr 18, 2016, at 01:07 , Devarshi Kulshreshtha <email@hidden> wrote:
>
>    extension DismissKeyboardOnOutsideTap {
>        func configureToDismissKeyboard() {
>            …
>        }
>
>        func hideKeyboard() {
>            …
>        }
>
>    }

I think the problem is that your methods are Swift functions, and so have mangled names. It should be enough to declare protocol as an Obj-C protocol:

> @objc protocol DismissKeyboardOnOutsideTap {
>        …
>    }

Since all the classes involved are Obj-C classes, I don’t think it has to be any more complicated than this.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Using protocol extension to dismiss keyboard on outside tap
      • From: Devarshi Kulshreshtha <email@hidden>
References: 
 >Using protocol extension to dismiss keyboard on outside tap (From: Devarshi Kulshreshtha <email@hidden>)

  • Prev by Date: Using protocol extension to dismiss keyboard on outside tap
  • Next by Date: Re: Using protocol extension to dismiss keyboard on outside tap
  • Previous by thread: Using protocol extension to dismiss keyboard on outside tap
  • Next by thread: Re: Using protocol extension to dismiss keyboard on outside tap
  • Index(es):
    • Date
    • Thread