Posts

Post marked as solved
1 Replies
In case others get stuck with this, I created a new container and ensured the container = NSPersistentCloudKitContainer(name: "name") , and the CoreData file was the same name and all went fine afer. I also made sure the container name, et.al. was a short name and was different from the BundleID. Blessings, --Mark
Post marked as solved
4 Replies
Hi, Thanks so much for the reply. To answer your question, I am using try await URLSession.shared.data(from: URL), but I discovered the API call is not the problem. I have been testing when there is no network connection, and I discovered on my iPhone 12 with 15.6.1, at least, when I turn on Airplane mode, it kills the cellular connection on some of my installed apps, including this one. Resetting the network configuration back to the factory settings fixes the issue until I put it back into Airplane mode again. Googling the issue, apparently, others have the same issue with this iOS build. I am relived it was not my code as I was really turning my head upside down trying to figure out what was going on. Thanks. Blessings, --Mark
Post marked as solved
4 Replies
I meant to say above that the cellular and data switches for the app are on for the iPhone. When the app is on cellular only the Async call to the dataService never gets called but works fine with WIFI. This is the new problem. Thanks. Blessings, --Mark
Post marked as solved
6 Replies
I make things WAY harder than they need to be! I discovered that I was adding a view (and the memory overhead) each time I changed the image and when the app reset, it just used the last image saved. The simple solution was to ignore the background view and add a UIImageView and change the image to that! Live and learn!
Post marked as solved
6 Replies
@Claude31 Thanks for your reply. Yes, viewWill Appertains is being called and setNeedsDisplay did not change the behavior. I must be missing something obvious. Thanks. Blessings, —Mark
Post marked as solved
6 Replies
Hi, Thanks for your response. This code is in the initial viewController. A new image can be selected in the settings VC. As I said, it works fine the first time and and when I swipe away the app. I call the method in viewWillAppear. It does run when the view activates, just does not update the image. I would expect the image would be be boded with the image data saved in the defaults every time it is called. Third: I call self.view.insertSubview(backgroundImage, at: 0) so that should insert the image. At least it does the first time and the the app restarts. Thanks. Blessings, —Mark