简洁代码,

 item.selected = dIndex == self.selectedIndex;

- (void)setShowDot:(BOOL)showDot

{

    _showDot = showDot;

    self.dotImageView.hidden = !showDot;

}

posted @ 2013-11-04 11:24  路在脚下,  阅读(151)  评论(0编辑  收藏  举报