阿拉伯语适配

This commit is contained in:
liyuhua
2024-04-17 16:02:42 +08:00
parent ebf377fe42
commit a3482659aa
207 changed files with 1579 additions and 1012 deletions

View File

@@ -68,7 +68,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
///
@property (nonatomic, strong) NSMutableArray<PIHomeCategoryTitleModel *> *tagModelList;
///
@property (nonatomic, strong) PIHoemCategoryTitleView *titleView;
@property (nonatomic, strong) JXCategoryTitleView *titleView;
///lineView
@property (nonatomic, strong) JXPagerView *pagingView;
@@ -202,12 +202,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
[self.pagingView.mainTableView.mj_header endRefreshing];
};
self.titleView.scrolledHandle = ^(NSInteger type) {
@kStrongify(self);
[self.titleView.listContainer didClickSelectedItemAtIndex:type];
self.pagingView.listContainerView.scrollView.contentOffset = CGPointMake(type * KScreenWidth, 0);
self.type = type;
};
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(homeVCRefreshComplete) name:@"khomeVCRefreshComplete" object:nil];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(logOut) name:@"kInLoginVC" object:nil];
@@ -354,7 +349,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
return self.headView;
}
- (NSUInteger)heightForPinSectionHeaderInPagerView:(JXPagerView *)pagerView {
return kGetScaleWidth(44);
return kGetScaleWidth(50);
}
- (UIView *)viewForPinSectionHeaderInPagerView:(JXPagerView *)pagerView {
return self.titleView;
@@ -402,6 +397,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
if(otherGestureRecognizer.view.tag == 9000002){
return NO;
}
if(otherGestureRecognizer.view.tag == 98777){
return NO;
}
@@ -433,10 +429,10 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
}
}
self.tagModelList = list;
self.titleView.titleList = self.tagModelList;
self.titleView.titles = titleArray;
[self.titleView reloadData];
self.titleView.index = 0;
}
- (void)homeChatPickSuccess:(NSString *)uid {
///
@@ -452,7 +448,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
- (void)categoryView:(JXCategoryBaseView *)categoryView didSelectedItemAtIndex:(NSInteger)index{
self.titleView.index = index;
self.type = index;
}
@@ -532,31 +528,30 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
}
#pragma mark - Getters And Setters
- (PIHoemCategoryTitleView *)titleView {
- (JXCategoryTitleView *)titleView {
if (!_titleView) {
_titleView = [[PIHoemCategoryTitleView alloc] initWithFrame:CGRectZero];
_titleView = [[JXCategoryTitleView alloc] initWithFrame:CGRectZero];
_titleView.delegate = self;
_titleView.titles = @[];
_titleView.titleList = [@[]mutableCopy];
_titleView.backgroundColor = [UIColor clearColor];
_titleView.titleColor = [UIColor clearColor];
_titleView.titleSelectedColor = [UIColor clearColor];
_titleView.titleFont = kFontSemibold(16);
_titleView.titleSelectedFont = kFontRegular(14);
_titleView.titleColor = UIColorFromRGB(0x767585);
_titleView.titleSelectedColor = UIColorFromRGB(0x1E1E1F);
_titleView.titleFont = kFontRegular(14);
_titleView.titleSelectedFont = kFontSemibold(16);
_titleView.titleLabelAnchorPointStyle = JXCategoryTitleLabelAnchorPointStyleCenter;
_titleView.contentScrollViewClickTransitionAnimationEnabled = NO;
_titleView.defaultSelectedIndex = 0;
_titleView.cellSpacing = kGetScaleWidth(2);
_titleView.cellWidth = kGetScaleWidth(20);
_titleView.cellSpacing = kGetScaleWidth(20);
_titleView.listContainer = (id<JXCategoryViewListContainer>)self.pagingView.listContainerView;
// JXCategoryIndicatorImageView * indocator = [[JXCategoryIndicatorImageView alloc] init];
// indocator.indicatorImageView.image = [UIImage imageNamed:@"home_slider_bg"];
// indocator.indicatorImageViewSize = CGSizeMake(kGetScaleWidth(36), kGetScaleWidth(8));
// indocator.verticalMargin = 4;
// indocator.contentMode = UIViewContentModeScaleAspectFit;
// _titleView.indicators = @[indocator];
JXCategoryIndicatorImageView * indocator = [[JXCategoryIndicatorImageView alloc] init];
indocator.indicatorImageView.image = [UIImage imageNamed:@"ms_hoem_index_icon"];
indocator.indicatorImageViewSize = CGSizeMake(kGetScaleWidth(24), kGetScaleWidth(24));
indocator.verticalMargin = -kGetScaleWidth(4);
indocator.contentMode = UIViewContentModeScaleAspectFit;
_titleView.indicators = @[indocator];
}
return _titleView;
}