Hi
I wan' t to implement a custo initialization method for my UIViewController Subclass to "replace" the initWithNibName method.
This is the code:
- (id) initWithMessage:(NSString *)message
{
if ((self = [super initWithNibName:@"ToolTip" bundle:nil]))
{
label.text = message;
}
return self;
}
The Label isloadedo from Xib but at this point the reference to the Label is nil (probably because the xib is not loaded yet?). Can anyone know a solution for that? thanks