IPNOE開発..背面画像の上でテキストをフェードすることを望んでいます
質問
表示されているテキストのあるラーブルがあり、背景画像をゆっくりとフェードしたいと思います。テキストで画像にラベルを付けることができますが、XcodeとUtalising Interface Builderを使用してGradualy Fade Imのためにとどまることを願っています。ありがとう
解決
インターフェイスビルダーからリンクされた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];
所属していません StackOverflow