Strange behavior when restarting the app

Getting into LiveCode for iOS? Ask your questions here.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
Peter@multidesk.se
Posts: 100
Joined: Fri Oct 14, 2011 6:53 am

Strange behavior when restarting the app

Post by Peter@multidesk.se » Thu Oct 04, 2018 8:59 am

When I start my app after installing it on my iPad, everything works as it should.
However, when I restart the app, the screen flashes between the splash screen, my main card and my login card and there is nothing in the code (as far as I can see) that reveals why this strange behavior occurs.

Code: Select all

on preOpenStack
   set the fullscreenmode of this stack to "letterBox"
   end preOpenStack

on openStack
   set the cVerifiedLogIn of cd "logIn" of stack "ID-check" to "false"
   set the cTestRun of cd "mainCard" of stack "ID-check" to "false"
end openStack

Code: Select all

on preOpenCard
   if the environment is "mobile" 
   then
      set the defaultFolder to specialFolderPath("documents")
      get URL ("file:agree.txt")
      if it is not ""
      then
         put the base64Decode of it into it
         set the cAgree of this cd to it
      else
         set the cAgree of this cd to ""
      end if
   end if
   get URL ("file:Konto.txt")
   if it is not ""
   then
      put the base64Decode of it into it
      set the cKontoUppgifter of this cd to it
      set the cNamn of cd "mainCard" to line 1 of it
      set the cPersNr of cd "mainCard" to line 2 of it
      set the cMobil of cd "mainCard" to line 3 of it
      set the cEpost of cd "mainCard" to line 4 of it
      set the cUser of cd "mainCard" to line 5 of it
      set the cPassword of cd "mainCard" to line 6 of it
   end if
end preOpenCard

on openCard
   if the cVerifiedLogIn of cd "logIn" is "true"
   then
      set the icon of btn "krediter" to the cKreditIcon of cd "mainCard"
   else
      set the icon of btn "krediter" to 1007 
   end if
end openCard
Can anyone explain this? The app looks like a piece of junk with this behavior


///Peter
/*Whats all the fuss with c# ?*/

Post Reply

Return to “iOS Deployment”