First of all, the values animateWithDurationand delayare the values and should be like and float1.02.0
:, ViewDidLoad,
-, , , ,
performSelector:withObject:afterDelay
- delay 0 UIView completion animateWithDuration
[UIView animateWithDuration:2.0 delay:0.0 options:UIViewAnimationOptionCurveEaseInOut
animations:^(void) {
}
completion:^(BOOL finished){
[UIView animateWithDuration:1.0 delay:0.0 options:
UIViewAnimationOptionCurveEaseIn animations:^{
} completion:^ (BOOL completed) {}];
}];
PS: , , , , , , .
. , , :
[UIView animateWithDuration:1.0
delay:2.0
options: UIViewAnimationOptionTransitionCrossDissolve
animations:nil
completion:^{
lbl.text = @"My text" ;
}];
backgroundColor UIView. backgroundColor layer:
[[controller layer] setBackgroundColor:[[UIColor anyColor] CGColor]];