Skip to content

impossible to add variable label (IBOutlet) in containerview before [show] #108

Open
@JoeriBultheel

Description

@JoeriBultheel

Hi,

I'm using a xib file as the containerView for the CustomIOSAlertView. It has an IBOutlet UILabel of which I want to set the text before showing the AlertView.
Thusfar I cannot get it to work: The view doesn't recognize the selector setLabelText: I think because the -awakeFromNib is never called ?

Is there an example of this working somewhere? how could I achieve this?
code:

ConfirmEmailAlertView *emailAlertView = [[ConfirmEmailAlertView alloc] init];
emailAlertView.layer.cornerRadius = 7;
emailAlertView.layer.masksToBounds = YES;
[emailAlertView setEmailtext:self.txtEmail.text];
CustomIOSAlertView *emailAlert = [[CustomIOSAlertView alloc] init];
[emailAlert setContainerView: emailAlert];
emailAlert.alpha = 0.95;
[emailAlert setButtonTitles:[NSMutableArray arrayWithObjects:@"NO", @"YES", nil]];
[emailAlert setDelegate:self];

[emailAlert show];

THNX !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions