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
+ (UIBezierPath *)martiniShape:(CGRect)originalFrame { | |
float x = CGRectGetMinX(originalFrame); | |
float y = CGRectGetMinY(originalFrame); | |
float width = CGRectGetWidth(originalFrame); | |
float height = CGRectGetHeight(originalFrame); | |
UIBezierPath* bezierPath = [UIBezierPath bezierPath]; | |
[bezierPath moveToPoint: CGPointMake(x + 0.33980 * width, y + 0.99174 * height)]; | |
[bezierPath addCurveToPoint: CGPointMake(x + 0.35471 * width, y + 0.98285 * height) controlPoint1: CGPointMake(x + 0.34475 * width, y + 0.98872 * height) controlPoint2: CGPointMake(x + 0.34935 * width, y + 0.98462 * height)]; | |
[bezierPath addCurveToPoint: CGPointMake(x + 0.46691 * width, y + 0.94635 * height) controlPoint1: CGPointMake(x + 0.39206 * width, y + 0.97052 * height) controlPoint2: CGPointMake(x + 0.42994 * width, y + 0.95972 * height)]; |
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
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// Do any additional setup after loading the view from its nib. | |
if ([self respondsToSelector:SELE(setNeedsStatusBarAppearanceUpdate)]) { //iOS 7 | |
[self setNeedsStatusBarAppearanceUpdate]; | |
} else { | |
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade]; | |
} |
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
#python | |
#这是一句中文 |
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
sfgsg |