1.新建工程名为RotateDemo , File->New->Project ->single View Application -> next
2.在view视图上添加两个Label,
// RotateViewController.h #import <UIKit/UIKit.h> @interface RotateViewController : UIViewController { UILabel *upLabel; UILabel *downLabel; CGRect upFrame; CGRect dowmFrame; } @end
- (void)viewDidLoad { [super viewDidLoad]; //
本文转自新风作浪 51CTO博客,原文链接:http://blog.51cto.com/duxinfeng/1208755,如需转载请自行联系原作者