=-= 命名有些错误,但功能实现,以后注意下命名规范WJViewGroup.h#import <UIKit/UIKit.h>@interface WJViewGroup : UIView { NSInteger _width; NSInteger _height; ...
=-= 命名有些错误,但功能实现,以后注意下命名规范
WJViewGroup.h
#import <UIKit/UIKit.h>@interface WJViewGroup : UIView { NSInteger _width; NSInteger _height;}@property (nonatomic,assign)NSInteger widthNum; //横排多少个@property (nonatomic,assign)NSInteger heightNum; //竖排多少个@property (copy, nonatomic) void(^itemBlock)(NSInteger index);//按钮点击回调@property (nonatomic,assign)BOOL isLine;@property (nonatomic,strong)NSMutableArray *array;/** * 添加item * * @param widthItem 高数量 * @param heightItem 宽数量 * @param num item数量 */- (void)addItem:(NSInteger)widthItem widthItem:(NSInteger)heightItem num:(NSArray *)num;/** * 改变item的文字 * * @param array 文字数组 */- (void)item:(NSArray *)array;@end
原标题:ios 团购分类页面(9宫格)
关键词:IOS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。