I wonder how can I pass a UIlabel
to a function ?
I wrote a function that gives a UILabel text from a table, but now i want to run the function with the UIlabel
passed to the head of the function. Just like you would do with the text or int
. Do I need a pointer or can I pass the label the normal way?
-(void)giveText:(NSString) *textinsert
{
label1.text=textinsert;
}
How could I save all the labels inside an array and run through the array?