visual effects and iOS SImulator

Klaus major-k klaus at major-k.de
Mon Nov 18 11:26:17 EST 2013


Hi Tom,

Am 18.11.2013 um 16:29 schrieb Thomas McGrath III <mcgrath3 at mac.com>:

> Klaus, on iOS the lock screen did change and will crash or create other problems when used the ‘old’ way.

Yep, that's what I experienced ;-)

> It is more like before hand we lock and set for the effects size and then after we set for unlock and the actual effect itself. Doing it that way avoids all problems on iOS. 
> 
> Now, for simulating the push effects of iOS (where the NAV bars do not push but the content does) I use a background group/image (which I set to the size of the card minus the Nav bar and set below the Nav bar in my resize scripts), and I then set a flag in the card if the effect is to be applied just to the rect of the background group or to the whole card depending on which type I want.
> 
> 
>  if exists(group "Background") then
>          if the cUseVisualEffect of this card then
>               lock screen for visual effect in rect (the rect of group "Background")
>          else
>               lock screen for visual effect in rect (the rect of this card)
>          end if
>     else
>          lock screen for visual effect in rect (the rect of this card)
>     end if
>     go next card
>     unlock screen with visual effect "push left”

ah, great, thanks, will save this for later, got my project runing as described so far :-)

> Tom

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list