UIView *temp = [self viewWithTag:(NSInteger)(loadNumber +1000)]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.3]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; temp.alpha = 1; [UIView commitAnimations];
typedef enum {
UIViewAnimationTransitionNone,
UIViewAnimationTransitionFlipFromLeft,
UIViewAnimationTransitionFlipFromRight,
UIViewAnimationTransitionCurlUp,
UIViewAnimationTransitionCurlDown,
} UIViewAnimationTransition; 2、使用UIView类的UIViewAnimationWithBlocks扩展: 特点:快捷方便,效果更多.可以如上示例1那样实现界面个元素属性渐进变化的动态展示 使用示例:
[UIView animateWithDuration:0.3 animations:^{ [temp setFrame:LEFTBIGIMAGEFRAME]; } completion:^(BOOL finish){ }];