码迷,mamicode.com
首页 > 其他好文 > 详细

tableview逆时针旋转90度。

时间:2014-12-03 12:41:23      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:io   ar   color   sp   for   on   bs   ad   as   

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];


tableview逆时针旋转90度。

标签:io   ar   color   sp   for   on   bs   ad   as   

原文地址:http://my.oschina.net/u/1451688/blog/351679

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!