最近开发过程中,发现内存会无故增加,在做内存优化的过程中,无意间发现了内存泄露的情况,那就是从iOS8.0 苹果开始推荐我们使用的UIAlertController!!! 看到这你是不是会嘲笑我第一次使用UIAlertController,居然还会出现内存泄露?我想说你 too young, too ...
分类:
其他好文 时间:
2017-10-09 15:25:02
阅读次数:
301
1.种类 中部提示框-alert 底部提示框-actionSheet 2.菜单项参数 title:标题 取消 style:样式 .cencel handle:nil 误操作 把菜单项添加到UIAlertController:使用addAction方法 显示菜单:使用self.present // M ...
分类:
移动开发 时间:
2017-09-10 00:05:43
阅读次数:
253
在Xcode的iOS9.0 SDK中,UIAlertView和UIActionSheet都被UIAlertController取代。 在iOS 9中,UIAlertController在功能上是和UIAlertView以及UIActionSheet相同的,UIAlertController以一种模块 ...
分类:
移动开发 时间:
2017-06-12 21:06:31
阅读次数:
273
上传图片流到服务器(AFN方法) (多张图片)(图片流) 第一步//获取图片 UIAlertController *actionSheet = [UIAlertController alertControllerWithTitle:@"添加照片" message:nil preferredStyle ...
分类:
Web程序 时间:
2017-05-16 13:05:39
阅读次数:
139
在iOS8之前用UIActionSheet和UIAlertView来提供button选择和提示性信息,比方UIActionSheet能够这样写: UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"title,nil ...
分类:
移动开发 时间:
2017-04-13 15:05:33
阅读次数:
251
UILabel属性大全UIButton属性大全UIView属性大全UIImage属性大全UIImageView属性大全UITextField属性大全UIScrollView属性大全UITableView属性大全UIViewController属性大全UIAlertController属性大全UISe ...
分类:
其他好文 时间:
2017-03-21 18:20:51
阅读次数:
170
重构项目时发现有的时候需要弹出提示,比如登录成功,数据请求失败,还有选择相机或者相册来上传头像等等。 今天就自己写了一个弹出框,采用的是系统的UIAlertController,只不过自己有定义了一些事件点击的方法,使用时可以直接输入提示的内容还有提供的选项以及点击选项时的事件。 使用方法: 先导头 ...
分类:
移动开发 时间:
2017-03-15 18:50:07
阅读次数:
216
import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } override func touchesBegan(touches: Set, wit... ...
分类:
编程语言 时间:
2017-02-07 10:54:17
阅读次数:
216
1、UIAlertController简介: ※了解:UIAlertController - - -> 提醒框控制器,在需要提醒用户执行某些操作时使用;通常分为两种样式:中间提醒框、底部提醒框。 苹果官方介绍: 2、UIAlertController使用: 2-1、UIAlertController ...
分类:
移动开发 时间:
2017-02-05 15:02:24
阅读次数:
198