I have a button in Widget iOS8. How can I get event when button on click?
Asked
Active
Viewed 1,942 times
1 Answers
3
After you setup the button, just add a target to the button as you would in your app. For example in viewDidLoad.
[yourButton addTarget:self action:@selector(yourMethod:) forControlEvents:UIControlEventTouchUpInside];

whyp
- 603
- 5
- 14