首页 > 其他 > 详细

tableview逆时针旋转90度。

时间:2014-12-03 12:40:56      阅读:372      评论:0      收藏:0      [点我收藏+]
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度。

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!