Commit bb90d7598be9802757fd858378cf6e7e77e51316

Authored by yanglingyu
1 parent e2600ae4

修复闪退

CNLiveCServiceModule.podspec
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 8
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 s.name = 'CNLiveCServiceModule' 10 s.name = 'CNLiveCServiceModule'
11 - s.version = '0.0.10' 11 + s.version = '0.0.11'
12 s.summary = '我的服务内容' 12 s.summary = '我的服务内容'
13 13
14 # This description is used to generate tags and improve search results. 14 # This description is used to generate tags and improve search results.
CNLiveCServiceModule/Classes/Present/CNLiveServicePresent.m
@@ -167,7 +167,7 @@ static const CGFloat margin = 15; @@ -167,7 +167,7 @@ static const CGFloat margin = 15;
167 for (int i = 0; i< array.count ;i++ ) { 167 for (int i = 0; i< array.count ;i++ ) {
168 NSDictionary *dic = array[i]; 168 NSDictionary *dic = array[i];
169 NSObject *model = nil; 169 NSObject *model = nil;
170 - if ([title isEqualToString:@""]) { 170 + if ([title isEqualToString:@""] && [subTitle isEqualToString:@""]) {
171 model = [CNCategoryModel mj_objectWithKeyValues:dic]; 171 model = [CNCategoryModel mj_objectWithKeyValues:dic];
172 }else{ 172 }else{
173 model = [CNLiveSearchModel mj_objectWithKeyValues:dic]; 173 model = [CNLiveSearchModel mj_objectWithKeyValues:dic];