注意用数字的时候不要莫名其妙随手加*, @property (nonatomic, assign) NSInteger spineIndex; ...
for循环往可变数组里添加数据时出现的 添加的是int型 需要改变下类型 比如添加的是 int a addobject后面就是 NSNumber numberWithInt:a ...
2021-01-06 10:37 0 694 推荐指数:
注意用数字的时候不要莫名其妙随手加*, @property (nonatomic, assign) NSInteger spineIndex; ...
一、Cocoapod 执行pod install命令时报错 [!] An error occurred while processing the post-install hook of the Podfile. no implicit conversion of nil ...
http://stackoverflow.com/questions/9961626/why-am-i-getting-an-integer-to-pointer-conversion-error-in-objective-c 用[NSNumber numberWithInteger:id]转化 ...
1.缘由 最近在使用nlohmann的json,发现有些地方不是特别好用,所以就想自己修改一下(目的是为了增加类似jsoncpp中可以//增加注释的功能),在看源码的时候看到了一个迷惑的地方,就是解 ...
ARC (Automatic Reference Counting) iOS SDK5.0 以后的推出的新功能。 旧工程配置arc方案: 在Targets->build phases中修改compiler Flags,-fobjc-arc 和 -fno-objc-arc,就可以让工程混编 ...
【ARC的特性】 ARC下,所有NSObject类型指针, 1. 默认为__strong类型 2. 可以显示的指定为__weak类型,__weak类型指针在所指向对象销毁后会自动置为nil 3. __autorelesing类型用于inout参数类型 ARC下,当一个 ...
内存管理是开发软件中重要的一个课题。如果内存管理不当,轻者内存泄露,重者程序崩溃。 下面重要讲述一下iOS的ARC(Automatic Reference Counting))机制。 ARC的历史由来 在iOS1.0的时候,苹果公司没有开放手机开发接口,不存在iOS开发者这个概念 ...
我们开发的时候经常需要有arc和非arc的混编,这样我们就需要对其进行设置 用-fno-objc-arc来标记在ARC工程那些不支持ARC的文件 用-fobjc-arc标记标记在非ARC工程中支持ARC的文件 ...