国际化
This commit is contained in:
@@ -368,10 +368,10 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
|
||||
|
||||
|
||||
|
||||
if (index == self.tagModelList.count - 1) {
|
||||
self.recommendVC.tagModel = [self.tagModelList safeObjectAtIndex1:index];
|
||||
return self.recommendVC;
|
||||
} else {
|
||||
// if (index == self.tagModelList.count - 1) {
|
||||
// self.recommendVC.tagModel = [self.tagModelList safeObjectAtIndex1:index];
|
||||
// return self.recommendVC;
|
||||
// } else {
|
||||
id homeV = [self.validListDict objectForKey:[NSNumber numberWithInteger:index]];
|
||||
if (homeV) {
|
||||
return homeV;
|
||||
@@ -380,7 +380,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
|
||||
homeVC.tagModel = [self.tagModelList safeObjectAtIndex1:index];
|
||||
[self.validListDict setObject:homeVC forKey:@(index)];
|
||||
return homeVC;
|
||||
}
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@@ -422,7 +422,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
|
||||
- (void)getHomeTagListSuccess:(NSArray<PIHomeCategoryTitleModel *> *)array{
|
||||
if(array.count == 0)return;
|
||||
NSMutableArray *list = [NSMutableArray arrayWithArray:array];
|
||||
[list addObject:self.tagModelList.lastObject];
|
||||
// [list addObject:self.tagModelList.lastObject];
|
||||
[list insertObject:self.tagModelList.firstObject atIndex:0];
|
||||
self.tagModelList = list;
|
||||
self.titleView.titleList = self.tagModelList;
|
||||
@@ -531,7 +531,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
|
||||
if (!_titleView) {
|
||||
_titleView = [[PIHoemCategoryTitleView alloc] initWithFrame:CGRectZero];
|
||||
_titleView.delegate = self;
|
||||
_titleView.titles = @[YMLocalizedString(@"XPNewHomeViewController0"),YMLocalizedString(@"XPNewHomeViewController1")];
|
||||
_titleView.titles = @[YMLocalizedString(@"XPNewHomeViewController0")];
|
||||
_titleView.titleList = self.tagModelList;
|
||||
_titleView.backgroundColor = [UIColor clearColor];
|
||||
_titleView.titleColor = [UIColor clearColor];
|
||||
@@ -572,7 +572,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
|
||||
hotModel.checkedWidth = [UILabel getWidthWithText:recommendModel.name height:kGetScaleWidth(44) font:kFontSemibold(16)];
|
||||
hotModel.noCheckedWidth = [UILabel getWidthWithText:recommendModel.name height:kGetScaleWidth(44) font:kFontRegular(14)];
|
||||
[_tagModelList addObject:recommendModel];
|
||||
[_tagModelList addObject:hotModel];
|
||||
// [_tagModelList addObject:hotModel];
|
||||
}
|
||||
return _tagModelList;
|
||||
}
|
||||
|
Reference in New Issue
Block a user