- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style{
self = [super initWithFrame:frame style:style];
if (self) {
//
倒置
self.bounds = CGRectMake(
0,
0, frame.size.height, frame.size.width);
self.dataSource = self;
self.
delegate = self;
self.layer.borderWidth =
1;
self.showsVerticalScrollIndicator = NO;
self.pagingEnabled = YES;
self.separatorStyle = UITableViewCellSeparatorStyleNone;
self.transform = CGAffineTransformMakeRotation(-M_PI /
2);
[self initDataSource];
}
return self;
}
//
配合旋轉
cell.contentView.transform = CGAffineTransformMakeRotation(M_PI /
2);