iiicp / KeyboardforChat

仿微信聊天键盘,无污染,无任何第三方,使用简单

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请教内存问题

Bretra opened this issue · comments

for (int i = 0; i < lines; ++i) {
for (int j = 0; j < cols; ++j) {
FaceButton btn = [FaceButton buttonWithType:UIButtonTypeCustom];
btn.frame = CGRectMake(j
item+edgeDistance+jhMargin,iitem+(i+1)*vMargin,item,item);
[btn addTarget:self action:@selector(faceBtnClick:) forControlEvents:UIControlEventTouchUpInside];
[self.contentView addSubview:btn];
[array addObject:btn];
}
}

这样做不是要消耗很多内存吗?