Incompatible integer to pointer conversion assigning to 'NSInteger *' (aka 'long *') from 'int'

来源:互联网 发布:sql loop循环 编辑:程序博客网 时间:2024/06/04 19:32

写代码的时候会出现这个错误


是在给NSInteger 类型赋值的时候发生的  就像、

_currentSearchInfoPage = 1;


仔细看申明变量


@property (nonatomic, assign) NSInteger *currentSearchInfoPage;


NSInteger 申明的时候不需要  * 号  去掉就好


@property (nonatomic, assign) NSInteger currentSearchInfoPage;



0 0
原创粉丝点击