关于iOS开发property with 'retain(or strong)' attribute must be of object type

Xcode的#import比#include的好处是解决多重包含的问题,遇到了相互包含头文件的问题this

property with 'retain(or strong)' attribute must be of object type”atom

解决方案就是在出错头文件中实现code

@class 文件名;便可解决例如get

#import "BaseViewModelService.h"it

#import "NavigationImpl.h"io

@class NavigationImpl;class

@interface BaseViewModel : NSObjectimport

@property(nonatomic,strong) NavigationImpl *naviImpl;object

相关文章
相关标签/搜索