Avoid fading while animating as a transition

Discussion in 'iOS Programming' started by mpramodjain, Feb 2, 2010.

  1. mpramodjain macrumors regular

    Joined:
    Nov 20, 2008
    Location:
    Banglore
    #1
    How to remove fading of an animation with the following attributes to the CATransition.


    [[lTickerView layer] addAnimation:basic_animation forKey:nil];

    What actually I am trying is to display a content with horizontal scrolling , just as a ticker.
    I am getting ticker done but every time the animation repeated it starts with a fading. I would like to avoid it . Is there any other way.
     
  2. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #2
    Why not try setting the alpha to 1 at the beginning of the animation.
     
  3. mpramodjain thread starter macrumors regular

    Joined:
    Nov 20, 2008
    Location:
    Banglore
    #3
    I tried setting alpha to 1 at the beginning, but it does not change the fading.
     
  4. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #4
    i don't know the answer, but i suspect it's easier to roll your own animations than dealing with the hidden consequences of tweaking apple's system animations.

    read about Animating Views in the UIView Class Reference, and/or goto this thread to see an example of doing so.
     

Share This Page