|
@@ -162,7 +162,7 @@ class ViewController: UITabBarController, UITabBarControllerDelegate {
|
|
|
ViewController.resetTabSelected()
|
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
|
- navigationController.modalPresentationStyle = .fullScreen
|
|
|
+ navigationController.modalPresentationStyle = .custom
|
|
|
// navigationController.navigationBar.tintColor = .white
|
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -360,55 +360,21 @@ class ViewController: UITabBarController, UITabBarControllerDelegate {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// @objc func qmeraLongPress() {
|
|
|
-// let navigationController = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "settingNav") as! UINavigationController
|
|
|
-// navigationController.modalPresentationStyle = .fullScreen
|
|
|
-//// navigationController.navigationBar.tintColor = .white
|
|
|
-// navigationController.navigationBar.barTintColor = .mainColor
|
|
|
-// navigationController.navigationBar.isTranslucent = false
|
|
|
-//// let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
-//// navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
-// navigationController.view.backgroundColor = .mainColor
|
|
|
-// UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.rootViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
-// }
|
|
|
-
|
|
|
@objc func ccTap() {
|
|
|
print("ccTap")
|
|
|
if(ViewController.checkIsChangePerson()){
|
|
|
- var isOfficer = false
|
|
|
- Database.shared.database?.inTransaction({ (fmdb, rollback) in
|
|
|
- let idMe = UserDefaults.standard.string(forKey: "me") as String?
|
|
|
- if let cursorData = Database.shared.getRecords(fmdb: fmdb, query: "SELECT user_type, image_id FROM BUDDY where f_pin='\(idMe!)'"), cursorData.next() {
|
|
|
- if cursorData.string(forColumnIndex: 0) == "24" {
|
|
|
- isOfficer = true
|
|
|
- }
|
|
|
- cursorData.close()
|
|
|
- return
|
|
|
- }
|
|
|
- })
|
|
|
show(b: false)
|
|
|
- if isOfficer {
|
|
|
- let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "myHistoryCC") as! HistoryCCViewController
|
|
|
- controller.isOfficer = true
|
|
|
- let navigationController = UINavigationController(rootViewController: controller)
|
|
|
-// navigationController.navigationBar.tintColor = .white
|
|
|
- navigationController.modalPresentationStyle = .fullScreen
|
|
|
- navigationController.navigationBar.barTintColor = .mainColor
|
|
|
- navigationController.navigationBar.isTranslucent = false
|
|
|
-// let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
-// navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
- navigationController.view.backgroundColor = .mainColor
|
|
|
- UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.rootViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
- } else {
|
|
|
- let controller = AppStoryBoard.Palio.instance.instantiateViewController(identifier: "editorPersonalVC") as! EditorPersonal
|
|
|
- controller.isContactCenter = true
|
|
|
- let navigationController = UINavigationController(rootViewController: controller)
|
|
|
- navigationController.modalPresentationStyle = .fullScreen
|
|
|
- UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.rootViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
- }
|
|
|
- }
|
|
|
- if(ViewController.isExpandButton){
|
|
|
- ViewController.expandButton()
|
|
|
+ let controller = AppStoryBoard.Palio.instance.instantiateViewController(identifier: "editorPersonalVC") as! EditorPersonal
|
|
|
+ controller.isContactCenter = true
|
|
|
+ let navigationController = UINavigationController(rootViewController: controller)
|
|
|
+ navigationController.modalPresentationStyle = .custom
|
|
|
+ navigationController.navigationBar.tintColor = .white
|
|
|
+ navigationController.navigationBar.barTintColor = .mainColor
|
|
|
+ navigationController.navigationBar.isTranslucent = false
|
|
|
+ let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
+ navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
+ navigationController.view.backgroundColor = .mainColor
|
|
|
+ UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.rootViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -417,18 +383,15 @@ class ViewController: UITabBarController, UITabBarControllerDelegate {
|
|
|
if(ViewController.checkIsChangePerson()){
|
|
|
show(b: false)
|
|
|
let navigationController = UINavigationController(rootViewController: QmeraCreateStreamingViewController())
|
|
|
- navigationController.modalPresentationStyle = .fullScreen
|
|
|
-// navigationController.navigationBar.tintColor = .white
|
|
|
+ navigationController.modalPresentationStyle = .custom
|
|
|
+ navigationController.navigationBar.tintColor = .white
|
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
-// let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
-// navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
+ let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
+ navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
navigationController.view.backgroundColor = .mainColor
|
|
|
UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.rootViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
}
|
|
|
- if(ViewController.isExpandButton){
|
|
|
- ViewController.expandButton()
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
@objc func callTap() {
|
|
@@ -437,18 +400,15 @@ class ViewController: UITabBarController, UITabBarControllerDelegate {
|
|
|
show(b: false)
|
|
|
let callContact = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "contactSID")
|
|
|
let navigationController = UINavigationController(rootViewController: callContact)
|
|
|
- navigationController.modalPresentationStyle = .fullScreen
|
|
|
-// navigationController.navigationBar.tintColor = .white
|
|
|
+ navigationController.modalPresentationStyle = .custom
|
|
|
+ navigationController.navigationBar.tintColor = .white
|
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
-// let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
-// navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
+ let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
+ navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
navigationController.view.backgroundColor = .mainColor
|
|
|
UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.rootViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
}
|
|
|
- if(ViewController.isExpandButton){
|
|
|
- ViewController.expandButton()
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
@objc func chatTap() {
|
|
@@ -456,34 +416,20 @@ class ViewController: UITabBarController, UITabBarControllerDelegate {
|
|
|
if(ViewController.checkIsChangePerson()){
|
|
|
show(b: false)
|
|
|
let navigationController = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "contactChatNav") as! UINavigationController
|
|
|
- navigationController.modalPresentationStyle = .fullScreen
|
|
|
-// navigationController.navigationBar.tintColor = .white
|
|
|
+ navigationController.modalPresentationStyle = .custom
|
|
|
+ navigationController.navigationBar.tintColor = .white
|
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
-// let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
-// navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
+ let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
+ navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
navigationController.view.backgroundColor = .mainColor
|
|
|
UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.rootViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
}
|
|
|
- if(ViewController.isExpandButton){
|
|
|
- ViewController.expandButton()
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
-// @objc func settingTap() {
|
|
|
-// let navigationController = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "settingNav") as! UINavigationController
|
|
|
-// navigationController.modalPresentationStyle = .fullScreen
|
|
|
-//// navigationController.navigationBar.tintColor = .white
|
|
|
-// navigationController.navigationBar.barTintColor = .mainColor
|
|
|
-// navigationController.navigationBar.isTranslucent = false
|
|
|
-//// let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
-//// navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
|
-// navigationController.view.backgroundColor = .mainColor
|
|
|
-// UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.rootViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
-// }
|
|
|
-
|
|
|
@objc func postTap() {
|
|
|
if(ViewController.checkIsChangePerson()){
|
|
|
+ show(b: false)
|
|
|
let customTab = PrefsUtil.getCustomTab().split(separator: ",")
|
|
|
let cpaasMode = PrefsUtil.getCpaasMode()
|
|
|
var i = 0
|
|
@@ -514,9 +460,6 @@ class ViewController: UITabBarController, UITabBarControllerDelegate {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
- if(ViewController.isExpandButton){
|
|
|
- ViewController.expandButton()
|
|
|
- }
|
|
|
|
|
|
}
|
|
|
|