Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 按位逻辑显示的字符串 我想实现的是,在屏幕中间有一个名字,一次出现一个字母,在一个时间间隔内出现。_Iphone_Objective C_Animation - Fatal编程技术网

Iphone 按位逻辑显示的字符串 我想实现的是,在屏幕中间有一个名字,一次出现一个字母,在一个时间间隔内出现。

Iphone 按位逻辑显示的字符串 我想实现的是,在屏幕中间有一个名字,一次出现一个字母,在一个时间间隔内出现。,iphone,objective-c,animation,Iphone,Objective C,Animation,我的“淡入”效果如下: 这有动画吗 非常感谢您的帮助,谢谢 例如,每次使用字符串中的一个或多个字符时,只需使用NSTimer来调用重置字段字符串的方法即可 NSUInteger theLength = [outputString length]+1; if( theLength == [originalString length] { [timer invalidate]; timer = nil; outputString = originalString; } el

我的“淡入”效果如下:

这有动画吗


非常感谢您的帮助,谢谢

例如,每次使用字符串中的一个或多个字符时,只需使用NSTimer来调用重置字段字符串的方法即可

NSUInteger  theLength = [outputString length]+1;
if( theLength == [originalString length]
{
    [timer invalidate];
    timer = nil;
    outputString = originalString;
}
else
    outputString = [originalString substringToIndex:theLength];
NSUInteger  theLength = [outputString length]+1;
if( theLength == [originalString length]
{
    [timer invalidate];
    timer = nil;
    outputString = originalString;
}
else
    outputString = [originalString substringToIndex:theLength];