设为首页 加入收藏

TOP

【代码笔记】iOS-清除图片缓存UIActionSheet
2017-10-13 10:33:08 】 浏览:1716
Tags:代码 笔记 iOS- 清除 图片 UIActionSheet

一,效果图。

二,代码。

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];
}
复制代码

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇iOS进阶学习-多线程 下一篇iOS—图片编辑,文字下落动画的Demo

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目