We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when I use "UITextField" keyboard show, the toast was covered by "keyboard"! My test code as follows:
(void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.title = @"test Toast"; self.view.backgroundColor = [UIColor whiteColor];
tt = [[UITextField alloc] init]; tt.frame = CGRectMake(50, 100, 200, 40); tt.placeholder = @"UItoasttestWork"; // tt.backgroundColor = [UIColor lightGrayColor];
[self.view addSubview:tt]; UIButton *toastBtn = [[UIButton alloc] init]; toastBtn.frame =CGRectMake(255, 100, 60, 40); [toastBtn setTitle:@"Toast" forState:UIControlStateNormal]; [toastBtn setTitleColor:[UIColor blueColor] forState:UIControlStateNormal]; [toastBtn addTarget:self action:@selector(zButtonClick:) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:toastBtn];
UITapGestureRecognizer *tapGeser = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(keyboardHidden:)]; [self.view addGestureRecognizer:tapGeser];
} -(void)zButtonClick:(UIButton *)btn{ [self.navigationController.view makeToast:@"This is a piece of toast"]; }
Any help will be appreciated!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when I use "UITextField" keyboard show, the toast was covered by "keyboard"!
My test code as follows:
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.title = @"test Toast";
self.view.backgroundColor = [UIColor whiteColor];
tt = [[UITextField alloc] init];
tt.frame = CGRectMake(50, 100, 200, 40);
tt.placeholder = @"UItoasttestWork";
// tt.backgroundColor = [UIColor lightGrayColor];
[self.view addSubview:tt];
UIButton *toastBtn = [[UIButton alloc] init];
toastBtn.frame =CGRectMake(255, 100, 60, 40);
[toastBtn setTitle:@"Toast" forState:UIControlStateNormal];
[toastBtn setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
[toastBtn addTarget:self action:@selector(zButtonClick:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:toastBtn];
UITapGestureRecognizer *tapGeser = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(keyboardHidden:)];
[self.view addGestureRecognizer:tapGeser];
}
-(void)zButtonClick:(UIButton *)btn{
[self.navigationController.view makeToast:@"This is a piece of toast"];
}
Any help will be appreciated!
The text was updated successfully, but these errors were encountered: