OC
文章平均质量分 79
『木辛』「月月鸟」
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
swift和OC的闭包浅析
swift自动闭包**自动闭包(@autoclosure) ** 官方的 ?? || &&就是autoClosure自动闭包是一种自动创建的用来把作为实际参数传递给函数的表达式打包的闭包。它不接受任何实际参数,并且当它被调用时,它会返回内部打包的表达式的值public func ?? <T>(optional: T?, defaultValue: @autoclosure () throws -> T) rethrows -> Tfunc ??<T原创 2022-05-18 00:08:59 · 636 阅读 · 0 评论 -
iOS 10 UICollectionView 索引不存在问题 UICollectionView received layout attributes for a cell with an index
iOS 10 UICollectionView 索引不存在问题 UICollectionView received layout attributes for a cell with an index path that does not exist报的错误是解决方法,在reloadData后添加.collectionViewLayout invalidateLayout[self.tagCollectionView reloadData]; [self.tagCollectionView.co原创 2022-02-08 13:57:06 · 2305 阅读 · 0 评论 -
OC学习2021-08
OC学习navigationcontroller不显示navigationBar需要设置代理来控制navigation@interface LoginViewController () <UINavigationControllerDelegate>代理方法- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewControll原创 2021-08-23 17:53:50 · 386 阅读 · 0 评论 -
2021-07-12-16 Objective-C学习文档
2021-07-12-16学习文档OC语法命令行编译(Clang编译器)内存weak strong copy assignid类型拷贝写法、重写NSString、NSMutableStringNSArray数组NSDictionary 表protocolOC内存优化OC函数库使用UIAlertController动画延迟方法xib使用自动布局KVC使用MVPOC语法命令行编译(Clang编译器)终端编译 :Clang -fobjc-arc 文件 -o编译器-内存管理 -o输出 输出文件内存内存原创 2021-07-16 16:46:54 · 405 阅读 · 0 评论
分享