objective c - How to listen action on iOS generated action sheet -


in application there uitextview containing email address. when touch , hold on email address, action sheet pops following buttons on it:

  • "new message"
  • "add contact"
  • etc.

how perform custom action on "new message" button click?

you have set viewcontroller actionsheets delegate , implement

-actionsheet:clickedbuttonatindex: 

then perform action need.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -