1
我构建了一个类并创建了初始化所有变量的方法。在.H错误:赋值中的不兼容类型
-(void) initWithX:(float *)x_ andY:(float *)y_ andWidth:(float *)width_;
和.M
-(void) initWithX:(float *)x_ andY:(float *)y_ andWidth:(float *)width_{
[super init];
x = x_; ***
y = y_; ***
width = width_; ***
}
线,*给我 “在分配类型不兼容” 的错误,但我不明白:我给在.h中告诉的3个浮动
谢谢大家