//设置播放数
if (topic.playcount > 10000)
{
self.playCountLabel.text = [NSString stringWithFormat:@"%.1f播放", topic.playcount/ 10000.0];
}
else
{
self.playCountLabel.text = [NSString stringWithFormat:@"%ld播放", topic.playcount];
}
//播放时间 设置为显示位数,如果不够,前面补0
self.playTimeLabel.text = [NSString stringWithFormat:@"%02ld:%02ld", topic.voicetime / 60, topic.voicetime % 60];
网友评论