Animation动画放大

我想点击view,然后view放大至全屏

UIView beginAnimations:@"imageViewBig" context:nil];

UIView setAnimationDuration:0.5];

carousel currentItemView].alpha = 1.0;

carousel currentItemView].frame = CGRectMake(0,500, 1024, 768);

carousel currentItemView].center = CGPointMake(512, 381);

UIView commitAnimations];

这个代码实现不了 应该怎么做呢 求解


- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { ; ; _imgView.alpha = 1.0; _imgView.frame = CGRectMake(0,0, 320, 480); ; } 我用的iphone,没在ipad下弄,应该差不多,前面全局变量 iboutlet 声明下该view。放在touch事件里,不知到这样是否合适你的要求 ,这个仅仅是放大,如果你想再变小的话,那就判断吧, bool变量。

谢谢了 这个问题已经解决 我还想问问 用MediaPlayerController播放本地视频得时候都有loading,我想用动画代替laoding得这个画面 应该怎样做啊

恩 好的 谢谢了

请问LZ最后是如何解决的呢 能不能提示一下