Posts

Post marked as solved
3 Replies
439 Views
I am using NSKeyedArchiver to archive and retrieve a UITextView. This works in the I can retrieve most of UITextView. However I cannot save and retrieve info about the border which is stored in a CALayer.              let tvdata = try NSKeyedArchiver.archivedData(withRootObject: textview! as UITextView, requiringSecureCoding: false)             let tvtmp = try! (NSKeyedUnarchiver.unarchiveTopLevelObjectWithData((self.tvdata?.regularFileContents)!) as? UITextView)!             let myAtmp = UITextView.unsecureUnarchived(from: tvdata)             print("textview.layer.borderWidth = \(textview!.layer.borderWidth)")             print("myAtmp.layer.borderWidth = \(myAtmp!.layer.borderWidth)")               let tvWrapper:FileWrapper = FileWrapper.init(regularFileWithContents:tvdata as Data)             let tmptv = UITextView.unsecureUnarchived(from: (tvWrapper.regularFileContents!))             Both tvTmp and myAtmp contains all of the usual UITextView values. Neither has the value for borderWidth. The printed values are : textview.layer.borderWidth = 3.0 myAtmp.layer.borderWidth = 0.0 tmptv.layer.borderWidth = 0.0 How can I archive and unarchive the borderWidth value?
Posted
by bwestcott.
Last updated
.
Post not yet marked as solved
4 Replies
2.7k Views
When I attempt to run on the simulator iPhone SE (14.5), I get the message over 1200 times while the app is starting. The target platform in Xcode is iOS 14.5. During startup, I am performing a metaDataQuery to load data from iCloud. Has anyone else seen this?
Posted
by bwestcott.
Last updated
.
Post not yet marked as solved
0 Replies
303 Views
I would like to change the title in the current view which it is being displayed. It is originally set in viewDidLoad, but i would like to change it after that. I have tried changing the title in viewWillAppear using the following; ``            title = "name8"            navigationItem.title = "name7"           self.title = "name1"             navigationController?.navigationItem.title = "name2"             self.navigationController?.navigationBar.topItem?.title = "name3"             navcontroller.title = "name4"             navcontroller.navigationBar.topItem?.title = "name5"             detailVC.navigationItem.title = "name6" // UINavigationItem: 0x101984210  but none of these has changed the original title. Am I missing something?`
Posted
by bwestcott.
Last updated
.
Post not yet marked as solved
0 Replies
439 Views
Testing swiftUI master/detail on simualator (11.2.1). When rotating detail view from portrait to landscape, everything OK.When rotating from landscape to portrait, onDisappear is called following a console message: 2019-11-18 14:17:27.902794-0700 combineTS[41908:4781824] Unbalanced calls to begin/end appearance transitions for <_TtGC7SwiftUI19UIHostingControllerVVS_22_VariadicView_Children7Element_: 0x7faa29410200>.Does anyone know why this is happening and how it can be prevented? I am trying to detect when the back button has been pressed and the detail view is being destroyed so I can cleanup database been used in detailView.
Posted
by bwestcott.
Last updated
.