Programming iOS 13 by Matt Neuburg

Programming iOS 13 by Matt Neuburg

Author:Matt Neuburg
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2019-12-26T16:00:00+00:00


class DetailViewController: UIViewController { var lab : UILabel! var boy : String = "" { didSet { if self.lab != nil { self.lab.text = self.boy } } } override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = .white let lab = UILabel() lab.translatesAutoresizingMaskIntoConstraints = false self.view.addSubview(lab) NSLayoutConstraint.activate([ lab.topAnchor.constraint( equalTo: self.view.safeAreaLayoutGuide.topAnchor, constant: 100), lab.centerXAnchor.constraint( equalTo: self.view.centerXAnchor) ]) self.lab = lab self.lab.text = self.boy } }

Our app delegate (or, in iOS 13, our scene delegate) constructs the interface by creating a UISplitViewController, giving it its two initial children, and putting its view into the window:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.