Skip to content

Commit 596ecf2

Browse files
committed
BUGFIX: Fix newer Xcode/clang warnings
1 parent de2fc2d commit 596ecf2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

FRLayeredNavigationController/FRLayeredNavigationController.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ + (CGRect)getScreenBoundsForOrientation:(UIInterfaceOrientation)orientation
543543

544544
if (UIInterfaceOrientationIsLandscape(orientation))
545545
{
546-
CGRect temp;
546+
CGRect temp = CGRectMake(0, 0, 0, 0);
547547
temp.size.width = fullScreenRect.size.height;
548548
temp.size.height = fullScreenRect.size.width;
549549
fullScreenRect = temp;
@@ -647,7 +647,7 @@ - (void)popViewControllerAnimated:(BOOL)animated
647647
if (animated) {
648648
[UIView animateWithDuration:0.5
649649
delay:0
650-
options: UIViewAnimationCurveLinear
650+
options: UIViewAnimationOptionCurveLinear
651651
animations:^{
652652
vc.view.frame = goAwayFrame;
653653
}
@@ -771,7 +771,7 @@ - (void)pushViewController:(UIViewController *)contentViewController
771771
if(animated) {
772772
[UIView animateWithDuration:0.5
773773
delay:0
774-
options: UIViewAnimationCurveEaseOut
774+
options: UIViewAnimationOptionCurveEaseOut
775775
animations:^{
776776
doNewFrameMove();
777777
}

FRLayeredNavigationController/Utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
BOOL CGFloatEquals(CGFloat l, CGFloat r);
3434
BOOL CGFloatNotEqual(CGFloat l, CGFloat r);
3535

36-
@interface Utils
36+
@interface Utils : NSObject
3737

3838
+ (UIImage *)transparentImage;
3939

0 commit comments

Comments
 (0)