Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Suppresed clang warning "implicit conversion from enumeration type" #43

Closed
wants to merge 1 commit into from

2 participants

@alexfish

MBProgressHUD.m:602 was trying to assign UIInterfaceOrientation to UIDeviceOrientation, updated the orientation variable to the correct UIInterfaceOrientation type. Also updated some Xcode compatibility settings in the demo project.

@matej
Collaborator

That's already fixed in master.

@matej matej closed this
@alexfish

Ah yes, sorry, haven't fetched upstream for a while : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 29, 2012
  1. @alexfish
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 6 deletions.
  1. +6 −5 Demo/HudDemo.xcodeproj/project.pbxproj
  2. +1 −1  MBProgressHUD.m
View
11 Demo/HudDemo.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 45;
+ objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
@@ -165,8 +165,11 @@
/* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0420;
+ };
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "HudDemo" */;
- compatibilityVersion = "Xcode 3.1";
+ compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
@@ -252,7 +255,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
ONLY_ACTIVE_ARCH = YES;
- PREBINDING = NO;
SDKROOT = iphoneos;
};
name = Debug;
@@ -266,8 +268,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- PREBINDING = NO;
- SDKROOT = iphoneos4.0;
+ SDKROOT = iphoneos;
};
name = Release;
};
View
2  MBProgressHUD.m
@@ -599,7 +599,7 @@ - (void)deviceOrientationDidChange:(NSNotification *)notification {
}
- (void)setTransformForCurrentOrientation:(BOOL)animated {
- UIDeviceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
+ UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
NSInteger degrees = 0;
if (UIInterfaceOrientationIsLandscape(orientation)) {
Something went wrong with that request. Please try again.