Commit 3c2048d14a68bb638f83e68fba45e38ada9b09ba
1 parent
b3183263
免责声明增加无内容时默认展示
Showing
2 changed files
with
6 additions
and
2 deletions
CNLiveCServiceModule.podspec
CNLiveCServiceModule/Classes/View/CNLiveAlertTipView.m
| ... | ... | @@ -55,7 +55,11 @@ |
| 55 | 55 | make.left.equalTo(tipView).offset(15); |
| 56 | 56 | }]; |
| 57 | 57 | |
| 58 | - tipView.messageLabel.text = desc; | |
| 58 | + if (!desc || [desc isEqualToString:@""]) { | |
| 59 | + tipView.messageLabel.text = [CNLiveAlertTipView noteFileTxt]; | |
| 60 | + }else{ | |
| 61 | + tipView.messageLabel.text = desc; | |
| 62 | + } | |
| 59 | 63 | [tipView.messageLabel mas_makeConstraints:^(MASConstraintMaker *make) { |
| 60 | 64 | make.top.equalTo(tipView.titleLabel.mas_bottom); |
| 61 | 65 | make.width.offset(255); | ... | ... |