小编scr*_*mbu的帖子

UIAction Sheet和警报问题

您好,我是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)

任何帮助将不胜感激!

iphone objective-c uialertview uiactionsheet ios

2
推荐指数
1
解决办法
2122
查看次数

标签 统计

ios ×1

iphone ×1

objective-c ×1

uiactionsheet ×1

uialertview ×1