I removed the following key in settings.plist from one of the simulators in the LiveCode folder so the app will keep running when the home button is tapped.
Code: Select all
<key>UIApplicationExitsOnSuspend</key>
${APPLICATION_EXITS_ON_SUSPEND}
Code: Select all
on updateTime
put long time into field "lblCurrentTime"
send "updateTime" to me in 500 milliseconds
set the itemDel to ":"
if word 1 of item 3 of the field "lblCurrentTime" = "00" then
put word 1 of item 2 of the field "lblCurrentTime" into the field "lblMinutes"
end if
end updateTime
If I keep the app running on the simulator screen, then all of the coding executes.
Can you tell me if something else needs to be done in settings.plist ?
Thanks.