UItableView 横向滚动
CGRect tableViewRect = CGRectMake(0.0, 0.0, 50.0, 320.0); self.tableView =[[UITableView alloc] initWithFrame:tableViewRect style:UITableViewStylePlain]; tableView.center = CGPointMake(self.view.frame.size.width / 2,self.view.frame.size.height / 2); tableView.delegate = self; tableView.dataSource = self; //tableview逆时针旋转90度。 tableView.transform = CGAffineTransformMakeRot ation(-M_PI / 2); // scrollbar 不显示 tableView.showsVerticalScrollIndic ator = NO;
==============================================================================================
(UITableViewCell
UITableViewCell *cell; cell = [tableView dequeueReusableCellWithI dentifier:@"identifier"]; if (cell == nil) { cell =[[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubt itle reuseIdentifier@"identifier"] autorelease]; // cell顺时针旋转90度 cell.contentView.transform = CGAffineTransformMakeRot ation(M_PI / 2); } return cell; }
引用:http://blog.51hint.com/?p=41
其它请参考:http://blog.csdn.net/dreamblock/article/details/6440933