http://blog.csdn.net/studyrecord/article/details/6439204
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
// Override point for customization after application launch.
// Add the view controller's view to the window and display.
UIImageView *myImageView = [[UIImageView alloc]initWithFrame:CGRectMake(window.frame.size.width/2-50.0,
window.frame.size.height/2-50.0, 100.0, 100.0)];
myImageView.backgroundColor = [UIColor redColor];
[UIImageView beginAnimations:nil context:nil];
[UIImageView setAnimationDuration:3.0];
//视图翻转
[myImageView setTransform:CGAffineTransformMakeRotation(10.0)];
[UIImageView commitAnimations];
//视图缩放
CGAffineTransform transform = CGAffineTransformMakeRotation(60);
transform = CGAffineTransformScale(transform, 0.1, 0.1);
[myImageView setTransform: transform];
[self.window addSubview:myImageView];
//[self.window addSubview:viewController.view];
[self.window makeKeyAndVisible];
return YES;
}