Objective-C中实现覆写init函数以及在初始化时添加参数 -(id) initWithWidth : (int) w andHeight:(int) h ;@property (nonatomic) int width, height ;height = h ;} return self ; 84500992 2014-09-04 05:24:10