首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何测试空UIImageView?

如何测试空UIImageView?

提问于 2018-01-26 00:09:31
回答 2关注 0查看 257

我有下面的代码,我想看看UIImageView(图像)设置。如果没有,我想显示一条错误消息。

代码语言:txt
复制
if (image==nil) {
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"No Image Selected" 
                                                                 delegate:nil 
                                                        cancelButtonTitle:@"OK" 
                                                   destructiveButtonTitle:nil 
                                                        otherButtonTitles:nil];

        [actionSheet showInView:[[self view]window]];
        [actionSheet autorelease];
    }

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档