I want to make a common function which takes a control as an argument (like UITextField, UIButton etc.)
Its working fine if I do like this
- (void) myFunction : (UITextField*) : control
{
}
//But I want to make it common for any control
- (void) myFunction : (`I don't know what to write here`) : control
{
//suppose if control is UITextField, I can set its font and its size.
//something like this
[control setFont:[UIFont fontWithName:@"Verdana" size:12]];
}
Is this possible?
You can also go like this