上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: - (void)createPropertyCode{ NSMutableString *codes = [NSMutableString string]; // 遍历字典 [self enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _ 阅读全文
posted @ 2019-03-20 21:19 SoulDu 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.设置假的间距,我们在tableviewcell的contentView上添加一个view,比如让其距离上下左右的距离都是10;这个方法是最容易想到的; 2.用UIContentView来代替tableview,然后通过下面这个函数来设置UICollectionViewCell的上下左右的间距; 阅读全文
posted @ 2019-03-20 13:37 SoulDu 阅读(597) 评论(0) 推荐(0) 编辑
摘要: iOS开发中常用的锁有如下几种 来比较一下遇到加锁的情况: 1. @synchronized 关键字加锁 2. NSLock 对象锁 3. NSCondition 4. NSConditionLock 条件锁 5. NSRecursiveLock 递归锁 6. pthread_mutex 互斥锁(C 阅读全文
posted @ 2019-03-19 13:56 SoulDu 阅读(982) 评论(0) 推荐(0) 编辑
摘要: #define isIphoneXXS [UIScreen mainScreen].bounds.size.width == 375 && [UIScreen mainScreen].bounds.size.height == 812 #define isIPhone5 [UIScreen main 阅读全文
posted @ 2019-01-07 16:44 SoulDu 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 原因: iOS11弃用了automaticallyAdjustsScrollViewInsets属性,新增contentInsetAdjustmentBehavior来替代它 //解决方案 添加如下代码,建议在 viewDidLoad添加 if (@available(iOS 11.0, *)) { 阅读全文
posted @ 2019-01-07 16:26 SoulDu 阅读(767) 评论(0) 推荐(0) 编辑
摘要: 方法一: self.cycleImv= [[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 50, 50)]; [self.view addSubview:self.cycleImv]; // 为图片切圆 self.cycleImv.laye 阅读全文
posted @ 2018-12-26 10:13 SoulDu 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: TableView顶部向下偏移 阅读全文
posted @ 2018-12-24 14:26 SoulDu 阅读(1702) 评论(0) 推荐(0) 编辑
摘要: ios has denied the launch request. 阅读全文
posted @ 2018-12-21 14:13 SoulDu 阅读(325) 评论(0) 推荐(0) 编辑
摘要: git 常用命令大全 阅读全文
posted @ 2018-12-14 17:44 SoulDu 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 方法一 1.把UITextView的text属性当成“placeholder”使用。 2.在开始编辑的代理方法里清除“placeholder”。 3.在结束编辑的代理方法里根据条件设置“placeholder”。 特点:这种方法的特点是,当用户点击了textView,placeholder占位文字就 阅读全文
posted @ 2018-11-27 15:18 SoulDu 阅读(308) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页