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

Prepopulate alertview #138

Closed
WillemPieterse opened this issue Aug 12, 2015 · 1 comment
Closed

Prepopulate alertview #138

WillemPieterse opened this issue Aug 12, 2015 · 1 comment

Comments

@WillemPieterse
Copy link

Good Day,
Is it possible to pre-populate a textbox with a value?

Thanks for the Brilliant control! I am using it with Swift, because your implementtation is just so much better that the other one :)

@dogo
Copy link
Owner

dogo commented Aug 18, 2015

Thank you @WillemPieterse
humm, you want something like this ?

    SCLAlertView *alert = [[SCLAlertView alloc] init];

    UITextField *textField = [alert addTextField:@"Enter your name"];

    [alert addButton:@"Show Name" actionBlock:^(void) {
        NSLog(@"Text value: %@", textField.text);
    }];

    [alert showEdit:self title:kInfoTitle subTitle:kSubtitle closeButtonTitle:kButtonTitle duration:0.0f];

ios simulator screen shot aug 18 2015 10 20 07 am

@dogo dogo closed this as completed Sep 16, 2015
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

2 participants