IOS
yuxinxxgc
这个作者很懒,什么都没留下…
展开
-
UIDeviceOrientation 和 UIInterfaceOrientation 设备旋转的用法 (实例)
UIDeviceOrientation 是机器硬件的当前旋转方向 这个你只能取值 不能设置UIInterfaceOrientation 是你程序界面的当前旋转方向 这个可以设置判断设备现在的方向:- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)inte转载 2013-05-03 15:44:15 · 395 阅读 · 0 评论 -
ios 6.0 屏幕旋转问题
1.先判断设备是否支持四个方向的旋转。操作步骤为:选中项目 --》 targets --> summary --> supported interface orientations 将四个设备的方向选上。2.查看项目的.plist文件 , 看supported interface orientations 是否有四个方向,有四个就代表支持四个方向了。(home butto转载 2013-05-03 16:17:15 · 447 阅读 · 0 评论 -
IOS TableView 详解
一、建立 UITableViewDataTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 420)];[DataTable setDelegate:self];[DataTable setDataSource:self];[self.view addSubview:DataTable];[DataT转载 2013-05-07 16:53:59 · 418 阅读 · 0 评论