This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
创建前先设定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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bnabxbabxas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:arc4random() 常用方法集合 | |
//获取一个随机整数范围在:[0,100)包括0,不包括100 | |
int x = arc4random() % 100; | |
//获取一个随机数范围在:[500,1000),包括500,不包括1000 | |
int y = (arc4random() % 501) + 500; | |
//获取一个随机整数,范围在[from,to),包括from,不包括to | |
-(int)getRandomNumber:(int)from to:(int)to |