From 10131a69598eaab5df5feae3a7beda96ec38c3e3 Mon Sep 17 00:00:00 2001 From: Dongjin Suh Date: Mon, 26 Sep 2016 14:40:56 +0900 Subject: [PATCH] remove warnings // warning: conflicting return type in implementation of 'orientationAngleRelativeToOrientation:': 'float' vs 'CGFloat' (aka 'double') --- .../00 - Orientation/Hello World/UIDevice-Orientation.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C14 Device/00 - Orientation/Hello World/UIDevice-Orientation.m b/C14 Device/00 - Orientation/Hello World/UIDevice-Orientation.m index 9b6fc05..7bf2d93 100644 --- a/C14 Device/00 - Orientation/Hello World/UIDevice-Orientation.m +++ b/C14 Device/00 - Orientation/Hello World/UIDevice-Orientation.m @@ -27,7 +27,7 @@ - (void)parseAccelerometerData:(CMAccelerometerData *)accelerometerData } -- (CGFloat)orientationAngle +- (float)orientationAngle { #if TARGET_IPHONE_SIMULATOR switch (self.orientation) @@ -78,7 +78,7 @@ - (UIDeviceOrientation)acceleratorBasedOrientation #pragma mark relative orientation // Thanks Jonah Williams -- (CGFloat)orientationAngleRelativeToOrientation:(UIDeviceOrientation)someOrientation +- (float)orientationAngleRelativeToOrientation:(UIDeviceOrientation)someOrientation { CGFloat dOrientation = 0.0f; switch (someOrientation)