tableViews = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
tableViews.delegate = self;
tableViews.dataSource = self;
tableViews.backgroundColor = [UIColor redColor];
tableViews.pagingEnabled = YES;
CGPoint pointCenter = tableViews.center;
//tableViews.contentOffset = CGPointMake(0, 320);
//[tableViews.layer setAnchorPoint:CGPointMake(0.0, 0.0)];
//tableview逆时针旋转90度。
tableViews.transform = CGAffineTransformMakeRotation(-M_PI /2);
tableViews.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
tableViews.center = pointCenter;
[self.view addSubview:tableViews];
转载于:https://my.oschina.net/liuchuanfeng/blog/351679