Author Topic: Remove all event delegates from UIButton? (inside code)  (Read 2300 times)

hexaust

  • Newbie
  • *
  • Thank You
  • -Given: 14
  • -Receive: 1
  • Posts: 35
    • View Profile
Remove all event delegates from UIButton? (inside code)
« on: April 18, 2014, 04:52:42 AM »
How can I remove all event delegates from UIButton in code? Basically I just want to clear all of them.

ryan

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 90
    • View Profile
Re: Remove all event delegates from UIButton? (inside code)
« Reply #1 on: April 18, 2014, 12:24:03 PM »
button.onClick.Clear();

onClick is just a List.