我有下面的代码,我想看看UIImageView
(图像)设置。如果没有,我想显示一条错误消息。
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];
}
相似问题