-1

テキストが表示され、背景画像にゆっくりとフェードするラベルが必要です。画像にテキスト付きのラベルがありますが、それをi秒間保持してから、xcodeとutalisingインターフェイスビルダーを使用して徐々にフェードインしたいと考えています。ありがとう

4

1 に答える 1

1

Interface Builder からリンクされた UIImage と UILabel がある場合は、viewdidload:メソッドに次を配置します。

// Starting state
myLabel.alpha=0.0;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
// Ending state
myLabel.alpha=1.0;
[UIView commitAnimations];

// Run another function to fade out after a second
[self performSelector:@selector(fadeOut:) withObject:sender afterDelay:1.0];    
于 2010-07-04T02:40:28.793 に答える