|
@@ -182,7 +182,12 @@ class GroupDetailViewController: UITableViewController {
|
|
controller.isDismiss = {
|
|
controller.isDismiss = {
|
|
self.reload()
|
|
self.reload()
|
|
}
|
|
}
|
|
- navigationController?.present(UINavigationController(rootViewController: controller), animated: true, completion: nil)
|
|
|
|
|
|
+ let navController = UINavigationController(rootViewController: controller)
|
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
|
+ UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
|
+ let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
|
+ navController.navigationBar.titleTextAttributes = textAttributes
|
|
|
|
+ navigationController?.present(navController, animated: true)
|
|
}
|
|
}
|
|
|
|
|
|
@objc func updateData(notification: NSNotification) {
|
|
@objc func updateData(notification: NSNotification) {
|
|
@@ -323,6 +328,10 @@ class GroupDetailViewController: UITableViewController {
|
|
self.reload()
|
|
self.reload()
|
|
}
|
|
}
|
|
let navController = UINavigationController(rootViewController: controller)
|
|
let navController = UINavigationController(rootViewController: controller)
|
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
|
+ UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
|
+ let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
|
+ navController.navigationBar.titleTextAttributes = textAttributes
|
|
navigationController?.present(navController, animated: true)
|
|
navigationController?.present(navController, animated: true)
|
|
} else if let g = group, isAdmin {
|
|
} else if let g = group, isAdmin {
|
|
let topic = g.topics[indexPath.row - 1]
|
|
let topic = g.topics[indexPath.row - 1]
|
|
@@ -488,6 +497,11 @@ class GroupDetailViewController: UITableViewController {
|
|
self.reload()
|
|
self.reload()
|
|
}
|
|
}
|
|
let navController = UINavigationController(rootViewController: controller)
|
|
let navController = UINavigationController(rootViewController: controller)
|
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
|
+ UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
|
+ let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
|
+ navController.navigationBar.titleTextAttributes = textAttributes
|
|
|
|
+ navController.navigationBar.largeTitleTextAttributes = textAttributes
|
|
navigationController?.present(navController, animated: true)
|
|
navigationController?.present(navController, animated: true)
|
|
} else if let g = group, isAdmin {
|
|
} else if let g = group, isAdmin {
|
|
let member = g.members[indexPath.row - 1]
|
|
let member = g.members[indexPath.row - 1]
|