CODE_SIGN_ENTITLEMENTS = ShenYin/PLAYBOY.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 202602271705;
+ CURRENT_PROJECT_VERSION = 202602271457;
DEVELOPMENT_TEAM = JKLJ58J33Q;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
CODE_SIGN_ENTITLEMENTS = ShenYin/PLAYBOY.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 202602271705;
+ CURRENT_PROJECT_VERSION = 202602271457;
DEVELOPMENT_TEAM = JKLJ58J33Q;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
</array>
<key>NSMicrophoneUsageDescription</key>
<string>录音需要使用麦克风</string>
+ <key>UIDesignRequiresCompatibility</key>
+ <true/>
</dict>
</plist>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
+ <key>UIDesignRequiresCompatibility</key>
+ <true/>
</dict>
</plist>
override func setupViews() {
addSubviews([tableView1,tableView2,line])
-// backgroundColor = .red
+ backgroundColor = .color(.bgColor)
tableView1.do { v in
v.backgroundColor = .color(.bgColor)
-// v.backgroundColor = .green
v.delegate = self
v.dataSource = self
v.estimatedRowHeight = 60
}
tableView2.do { v in
v.backgroundColor = .color(.bgColor)
-// v.backgroundColor = .yellow
v.delegate = self
v.dataSource = self
v.estimatedRowHeight = 60
make.top.equalToSuperview()
make.left.equalToSuperview()
make.width.equalTo(kScreenWid)
- make.height.equalToSuperview().multipliedBy(0.5)
+ make.bottom.equalTo(line.snp.top).offset(-18)
}
tableView2.snp.makeConstraints { make in
- make.top.equalTo(tableView1.snp.bottom)
+ make.top.equalTo(line.snp.bottom).offset(18)
make.left.equalToSuperview()
make.width.equalTo(kScreenWid)
- make.height.equalToSuperview().multipliedBy(0.5)
+ make.bottom.equalToSuperview()
}
line.snp.makeConstraints { make in
make.left.right.equalToSuperview().inset(36)
- make.top.equalTo(tableView2.snp.top )
+ make.centerY.equalToSuperview()
make.height.equalTo(1)
}
}
make.right.equalToSuperview().inset(18)
}
bgView.backgroundColor = .color(.theme)
- originalLabel.textColor = .white
+ originalLabel.textColor = UIColor.white.withAlphaComponent(0.8)
translationLabel.textColor = .white
}
else{
if indexPath.row == 0 {
cell.bgView.yc.setCorners(withRoundedRect: rect, roundingCorners: [.topLeft,.topRight], cornerRadii: CGSize(width: 8, height: 8))
}
- else if indexPath.row == LoginVM.shared.countryList.count - 1{
+ else if indexPath.row == list.count - 1{
cell.bgView.yc.setCorners(withRoundedRect: rect, roundingCorners: [.bottomLeft,.bottomRight], cornerRadii: CGSize(width: 8, height: 8))
}
else{
CCConfig.appLanguage = lan
LanuageCache.save(lan: CCConfig.appLanguage)
App.shared.didLogin()
- App.shared.tabController?.selectedIndex = 4
+ if let index = App.shared.tabController?.viewControllers?.count {
+ App.shared.tabController?.selectedIndex = index - 1
+ }
+
App.shared.goToPage(LanguageVC())
}
}