iOS12 compatibility: toolbox menu
This commit is contained in:
1 parent
d73c0ee319
commit
9b149a1eb5
2 files changed
+4
-2
No files matched your search
@@ -247,6 +247,7 @@
|
|||||||
toolBoxViewController = [[ToolboxViewController alloc] init];
|
toolBoxViewController = [[ToolboxViewController alloc] init];
|
||||||
toolBoxViewController.specialEntryDelegate = self;
|
toolBoxViewController.specialEntryDelegate = self;
|
||||||
toolBoxViewController.specialEntries = oldToolboxVC.specialEntries;
|
toolBoxViewController.specialEntries = oldToolboxVC.specialEntries;
|
||||||
|
toolBoxViewController.modalPresentationStyle = UIModalPresentationOverCurrentContext;
|
||||||
[self presentViewController:toolBoxViewController animated:YES completion:^{
|
[self presentViewController:toolBoxViewController animated:YES completion:^{
|
||||||
//[self->toolBoxViewController setupConstraints];
|
//[self->toolBoxViewController setupConstraints];
|
||||||
}];
|
}];
|
||||||
|
|||||||
@@ -149,8 +149,8 @@ import UIKit
|
|||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
|
|
||||||
// Set the width and height of the view
|
// Set the width and height of the view
|
||||||
view.widthAnchor.constraint(equalTo: view.superview!.widthAnchor, multiplier: isIPhone() ? 0.6 : 0.8),
|
view.widthAnchor.constraint(equalTo: view.superview!.widthAnchor, multiplier: isIPhone() ? 0.6 : 0.52),
|
||||||
view.heightAnchor.constraint(equalTo: view.superview!.heightAnchor, multiplier: 0.99),
|
view.heightAnchor.constraint(equalTo: view.superview!.heightAnchor, multiplier: 0.93),
|
||||||
// Set the width and height of the view
|
// Set the width and height of the view
|
||||||
//view.leadingAnchor.constraint(equalTo: view.superview!.leadingAnchor, constant: 60),
|
//view.leadingAnchor.constraint(equalTo: view.superview!.leadingAnchor, constant: 60),
|
||||||
//view.trailingAnchor.constraint(equalTo: view.superview!.trailingAnchor, constant: -60),
|
//view.trailingAnchor.constraint(equalTo: view.superview!.trailingAnchor, constant: -60),
|
||||||
@@ -310,6 +310,7 @@ import UIKit
|
|||||||
// Configure cell appearance
|
// Configure cell appearance
|
||||||
cell.backgroundColor = .clear // Set background color of the cell
|
cell.backgroundColor = .clear // Set background color of the cell
|
||||||
cell.textLabel?.textColor = UIColor.white // Set font color of the text
|
cell.textLabel?.textColor = UIColor.white // Set font color of the text
|
||||||
|
cell.textLabel?.font = UIFont.systemFont(ofSize: 18.5)
|
||||||
|
|
||||||
|
|
||||||
// Set selected background view
|
// Set selected background view
|
||||||
|
|||||||
Reference in new issue
Block a user