@SanMao
2015-08-05T16:35:15.000000Z
字数 593
阅读 1265
UI
存放数据的对象
@interface Shop : NSObject /** 名字 */@property (nonatomic, strong) NSString *name; /** 图标 */@property (nonatomic, strong) NSString *icon;@end
Shop *shop = [[Shop alloc] init];shop.name = dict[@"name"];shop.icon = dict[@"icon"];
UIView的类initWithFrame:方法中添加子控件layoutSubviews方法(系统自己调用)中设置子控件的frame [super layoutSubviews];UIView的类xib的文件名最好跟控件类名一样) 