2011-08-05 9 views
0

私が達成したいのは、画面の中央にある名前を、一度に1文字ずつ時間間隔で表示させることです。ビット論理によってビットが現れる文字列

I持っている私の「フェードイン」効果のために、次の

// Fade In effect 
-(void)fadeIn:(UIView*)viewToFadeIn withDuration:(NSTimeInterval)duration 
    andWait:(NSTimeInterval)wait 
{ 

[viewToFadeIn setAlpha:0.0]; 
[UIView animateWithDuration:duration delay:wait options:UIViewAnimationOptionTransitionCurlUp animations:^{[viewToFadeIn setAlpha:1.0];} completion:nil]; 

} 

は、任意のアニメーションは、このためにあるの?

ご協力いただきありがとうございます!

答えて

0

NSTimerを使用して、文字列のもう1つの文字を使用するたびにフィールド文字列をリセットする方法を使用してください。

NSUInteger theLength = [outputString length]+1; 
if(theLength == [originalString length] 
{ 
    [timer invalidate]; 
    timer = nil; 
    outputString = originalString; 
} 
else 
    outputString = [originalString substringToIndex:theLength]; 
関連する問題