Hmm, I'm not sure. But in Swift, you can use dismiss(animated:completion:) to unload a view controller or popViewController(animated:) in the case of navigation controllers.
Maybe this way:
// Example of navigating from Screen2ViewController to Screen1ViewController
class Screen2ViewController: UIViewController {
// Method for navigating to Screen1ViewController
@IBAction func goToScreen1(_ sender: Any) {
dismiss(animated: true, completion: nil)
}
}
Using these methods should ensure that view controller instances are deallocated properly, thereby avoiding memory leaks.
I have detect (only on iOS) that the Shaking Sensor Event is running always a first time when start de Screen Init app.
I have this event not available in the Design and also in the blocks screen and I d'ont shake the mobile. Attached aia example. testINIT.aia (2.0 KB)
When I have a POST access to a external web file (.TXT) the App stop if the file has more 100 KB. It runs well only for a litle TXT files. It happens only in iOS.
I don't put an aia example to protect securty web access of my hosting.
I tried to compile one of my apps with more than 300 files in the assets (aia size < 20 MB) without success. The progress bar shows 100% but remains stuck there. I then removed more than 100 files from the assets (there were only 196 files left), but still without success. Only after I removed more files (now only 162, aia size 14.2 MB) was the app compiled.
So there seems to be a limit on the number of files in the assets. If this is true, my question is why and where is the limit? @ewpatton
Google still enforces an upper limit of 32 MB for most incoming and outgoing payloads. My guess is that the final IPA ends up being too large for the build server to return to the App Inventor server running in Google App Engine between the compiled app bundle plus all of the assets. I will have to experiment to see if that's the root cause.
Hmm so yes that will definitely be a problem in the short term, at least until this goes into production and is available on the code server. I will see if I can architect a workaround in the meantime.
It happens with the iOS Companion. I have detected that it not stop the App. The App is running but the answer of the GotText event is delayed for more than 5 minutes for 500 KB. The same blocks with Android and with 1000 KB have the answer with 2-3 seconds. On iOS if the txt file has <100 KB it is delayed only 2-3 seconds.
There are countless errors when I try to run an app compiled with AI2 for iOS. Many such errors occur when I return to Screen1 from a non-Screen1 screen by closing the current screen. For example this one:
Image13 is not on Screen1, but is on the screen "Settings".
Image13 is just a spacer between two components (Width = "Fill parent").
I'm actually very creative in finding solutions to such problems. But here I really don't know where to start.