I have grouped the navigation bar widget that functions well.... That is until I press the home button on the iPhone which closes the app. On app reopen I use the following code:
Code: Select all
--this displays last card when a user re-starts the App
on preOpenStack
put specialfolderpath("documents") & "/lastplace" into thefile
if there is not a file thefile then
put empty into URL ("file:" & thefile)
else
put URL ("file:" & thefile) into thelastPlace
go card id theLastPlace
end if
end preOpenStack
The problem is that the navigation bar widget that is highlighted when the card opens is always the same one, in my case from card "1" of the stack. This although the correct "saved" card is showing. So I have a mismatch between card shown and icon highlighted. It corrects itself after clicking another icon.
Not sure how to resolve this? thx.