Why does the following code not work?
[Confirm addTarget:self
action:@selector([FunctionsApp Synch_Data:CompIDS])
forControlEvents:UIControlEventTouchUpInside];
given:
FunctionsApp: its other class
Synch_Data:its function in FunctionsApp
CompIDS: its MSmutableArray
the selector u pass is just the name of the method this is passed to the target who in turn checks if it exists and then calls it. u cant use a mutable array as a selector. since
confirmis a button u should use a method with signature- (void)buttonClicked:(id)senderwhere sender will be the button. and also since the selector is not a class-method you do not call it like this[FunctionsApp buttonClicked:]but instead you use the FunctionsApp object reference as target ( i.e. where the method exists as target).and please elaborate your question next time and be a bit more concrete in what things are.