¡@

Home 

2014/10/15 ¤U¤È 10:14:12

iphone Programming Glossary: showimg

perfomSelector on button and sending parameters

http://stackoverflow.com/questions/12763733/perfomselector-on-button-and-sending-parameters

on button and sending parameters I have a method with multiple variables void showImg UIBarButtonItem sender string1 NSString string2 NSString I want to send NSString values As this function is used for multiple.. multiple elements . This is how I add my action when no parameters are needed myButton addTarget self action @selector showImg forControlEvents UIControlEventTouchUpInside I tried adding parameters within the @selector like this myButton performSelector.. I tried adding parameters within the @selector like this myButton performSelector @selector showImg string1 string2 withObject @ 1 withObject @ 1 But this does not work. How may I call my function with multiple parameters..