English 中文(简体)
我如何替代一位CAL家的暗中情绪,在我自己的面前,它仍然是cks?
原标题:how come I replace a CALayer s position implicit animation and it still kicks in just before my own?

我这样做了:

  CABasicAnimation* translateA = [CABasicAnimation animation];
  translateA.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
  translateA.fillMode = kCAFillModeBoth;
  translateA.duration = 1;

  CALayer* nextLayer = <some layer...>
  [nextLayer addAnimation:translateA forKey:@"position.y"];
  newPos = nextLayer.position;
  newPos.y += someDelta;
  nextLayer.position = newPos;

而现在的情况是,我看到其最后立场几乎是“jump”一层,然后是我的 an。 我的猜测是“几乎跳跃”实际上是“沉积”的原始隐含估计(时间很短)。 我还试图替代立场,而不是立场,并试图取代整个层次的行动词典(为了补充这一估计)。 但我总是得到同样的结果。

我将怎样去做,以便我实际上只看到一席之地。

问题回答

你们能否展示更多的法典? 我在使用<条码>drawInContext:上的习惯特性时,正在处理这个问题。

I had this in my own layer:

+ (BOOL)needsDisplayForKey:(NSString *)key
{
    if ([key isEqualToString:@"progress"])
        return YES;
    else
        return [super needsDisplayForKey:key];
}

在这样做时:

[self.layer setValue:@1 forKey:@"progress"];

之后:

[self.layer addAnimation:animation forKey:@"progress"];

<代码>drawInContext: >,在计算开始之前,正用第1步调升。 问题在于,我正在将财产(进步)与<代码>@dynamic加以综合。 消除这一问题实际上解决了我的问题:-





相关问题
Interrupt driven HD44780 library for an Arduino

I have an HD44780 LCD screen, and I ve been using the LiquidCrystal Library provided with the Arduino development package. However, it s not reliable. I noticed some problems with it, and instead of ...

Appending lists from files to a single list in Python

I m trying to write a function that reads files from a "deferred" directory which contains files that contain lists. Here s what the files in the deferred folder contain: 173378981 , 45000 , ...

C# TCP/IP Client having an IO Exception

The IO Exception: "Unable to read data from the transport connection: An established connection was aborted by the software in your host machine." The code has been copied from a tutorial and I m ...

Java: Why isn t my file writing working?

I m trying to write a file from my Java program, but nothing happens. I m not getting any exceptions or errors, it s just silently failing. try { File outputFile = new File(args[...

Multithreading on a file open copy and write

I am new at threads here is the question, I have 3 threads one of them calls a method that writes into a file via File.AppendAllText method, other thread duplicates the text in the same file, and the ...

Is File.Exists an expensive operation?

Re: http://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx Does anyone know if this is a particularly slow or locking operation which could impact server performance in a large ...

Removing pause after reading using readLine in java

I am reading several lines from the console in a java program using the readLine command from the BufferedReader class. However, the program pauses at the end of the last line and does not proceed ...

热门标签