Is it possible to send extra parameters when I instantiate this button class, like so:?
BttClass *myButton = [[BttClass alloc] init];
If so, what is the correct syntax? I have been trying all sorts!
I would like to send a BOOL and a string.
Thanks.
Extend UIButton by subclassing it.
You need to define an initialiser method
Then implement the initialiser method
In a calling class your code would look like