您好,我是Xcode和iOS编程新手.我在我的动作表和警报中遇到了一些麻烦,必须按两次才能工作.它还说:"提交由其超级视图剪辑的动作表".某些控件可能无法响应触摸.在iPhone上尝试 - [UIActionSheet showFromTabBar:]或 - [UIActionSheet showFromToolbar:]而不是 - [UIActionSheet showInView:].
{
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:@"¿?" delegate:self cancelButtonTitle:@"No" destructiveButtonTitle:@"Send" otherButtonTitles:nil];
[actionSheet showInView:self.view];
}
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激!