Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JoeriBultheel opened this issue Oct 7, 2016 · 0 comments

Comments

@JoeriBultheel
Copy link

JoeriBultheel commented Oct 7, 2016

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant