设计技巧

1.cell 上面点击收藏按钮事件,发生变化 。通过代理释放出来。

- (void)bottomView:(BTProductListCellBottomView*)bottomView didClickLike:(BTProduct*)product;

- (void)likeBtnDidClick

{

if([self.delegaterespondsToSelector:@selector(bottomView:didClickLike:)]) {

[self.delegatebottomView:self  didClickLike:self.product];

}

}

2.cell间距


- (void)setFrame:(CGRect)frame

{

frame.origin.y+=10;//整体向下 移动10

frame.size.height-=10;//间隔为10

[supersetFrame:frame];

}

你可能感兴趣的:(设计技巧)