我得到一个导致tableViewController
的按钮。当UIAlertView触发时,我如何停止/取消继续
我创建UIAlertView
当resultArray是空,这也意味着没有什么上显示的tableView但被触发,当用户单击OK,没有什么变化和它关系到空的tableView。
如何停止进入其他视图控制器?
这是我的代码
if (refilteredArray.count==0) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"No result"
message:@"Please enter a different combination."
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
}
的赛格瑞不与代码触发,它的按钮触发IBAction为
- (IBAction)motorButton:(id)sender {
...
}
以及多数民众赞成的问题, 它的 - (IBAction为)motorButton:(ID)发送{ 它不是用代码触发 – user3790582
只需将此代码放入IBAction并在故事板中删除segue即可。只要以编程的方式执行 –
如何设置连接而无需从故事板直接连接 我该如何完成该操作 – user3790582