ビューが読み込まれたらアルファレベルを前後に変更して、画像が含まれているuibuttonをゆっくりと脈動させようとしています...
現在私はこれを行っていますが、何もしません...。
-(void)loopdyloop
{
while ( myCount < 1000 )
{
[UIView animateWithDuration:3.0
delay:0.0f
options:UIViewAnimationCurveEaseOut
animations:^{
iconButton.alpha = 0.0;
} completion:^(BOOL finished) {
if (finished) {
NSLog(@"animated");
}
}];
[UIView animateWithDuration:3.0
delay:0.0f
options:UIViewAnimationCurveEaseOut
animations:^{
iconButton.alpha = 1.0;
} completion:^(BOOL finished) {
if (finished) {
NSLog(@"animated");
}
}];
myCount++;
}
}
このメソッドは、viewdidloadメソッドから呼び出されます。
私はかなり粗雑ですが、それは私の最善の試みです。私がこれをどのように達成できるかについて何か考えがあれば、それは大いにありがたいです。