hello folks,
able suggest going wrong: receiving "unrecognized selector sent instance" error. which, understand, suggesting incorrect method call.
here's odd part - if add nslog statement in method being called, executes. if leave same (void) method blank, still crashes.
appreciated.
since haven't supplied code, wild ass guess defined method , manually set selector on button , signatures don't match. following. notice missing colon.
code:
{ [mybutton addtarget: self action: nsselectorfromstring(@"mymethod") forcontrolevents: uicontroleventtouchupinside ]; } - (void) mymethod: (id) sender { ... }
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment