您的位置:首页 > 产品设计 > UI/UE

【代码笔记】iOS-清除图片缓存UIActionSheet

2016-05-17 09:15 501 查看
一,效果图。





二,代码。

RootViewController.m

//点击任何处出现sheet
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UIActionSheet * sheet = [[UIActionSheet alloc] initWithTitle:@"确定要清空图片缓存?" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:@"确定" otherButtonTitles:nil, nil];
[sheet showInView:self.view];
}


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: