![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
末日小妖女
幸福,就是找个人,温暖一辈子
展开
-
UITextView随输入修改高度
这篇文章是为了解决在tableView上加textview,但是cell高度是随着输入实时变化的,以及textview换行是上下抖动问题 话不多说,直接上代码 if (@available(iOS 11.0, *)) { _mytable.estimatedRowHeight = 0; _mytable.estimatedSectionFooterHeight = ...原创 2018-12-27 11:44:30 · 242 阅读 · 0 评论 -
iOS权限是否打开
摄像头 /// 先判断摄像头硬件是否好用 if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { // 用户是否允许摄像头使用 NSString * mediaType = AVMediaTypeVideo; ...原创 2018-12-21 17:08:17 · 170 阅读 · 0 评论 -
关于block的应用
为了避免block重复引用问题 首先可以设置__weak typeof (self) wself = self; 如果是block嵌套的话,可以在里面设置__strong typeof(wself) sself = wself; 成员变量的调用可以是->方式 ...原创 2019-09-18 10:34:24 · 91 阅读 · 0 评论