Skip to content

Instantly share code, notes, and snippets.

View baxiang's full-sized avatar

羊羽 baxiang

View GitHub Profile
//
// MHGSwipeNavigationController.h
// SwipeNavigationController
//
// Created by 缪和光 on 28/12/2013.
// Copyright (c) 2013 Hokuang. All rights reserved.
//
#import <UIKit/UIKit.h>
创建前先设定tableview的rowHeight,然后旋转。
每个row的高度即为旋转后的宽度。然后在cellWillDisplay里旋转一下cell就可以了。
- (UITableView *)payTableView {
if(!_payTableView){
_payTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 320) style:UITableViewStylePlain];
_payTableView.backgroundColor = [UIColor clearColor];
_payTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
_payTableView.showsVerticalScrollIndicator = NO;
_payTableView.delegate = self;