Methods OC 1118

Methods

1.CGRect

maxY

1
CGFloat h = CGRectGetMaxY(self.textFrame);

2.count size of a String

1
2
CGSize maxSize = CGSizeMake(maxW,MAXFLOAT);
CGSize textSize = [status.text sizeWithFont:HYStatusOriginalTextFont constrainedTosize:maxSize];

3.set frame by counstruct

Snip20181122_14

4.rightBarButtonItem

Snip20181122_15

5.refreshControl

Snip20181122_18

6.insert array to array

Snip20181122_6

7.tableview scroll to top

Snip20181122_19

8.判断是否全面屏长宽高比

1
#define HYIsFullScreenIPhone ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? ([[UIScreen mainScreen] currentMode].size.height / [[UIScreen mainScreen] currentMode].size.width) > 2.16 : NO)

9.长屏需要设置luanchScreen