Skip to content

Commit

Permalink
Merge pull request #2 from rivera-ernesto/fix_warnings
Browse files Browse the repository at this point in the history
Fix compile warnings about mixing device and interface orientations
  • Loading branch information
tastyone committed Oct 7, 2013
2 parents f9b0170 + faa6445 commit 3a721de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MotionOrientation.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ - (void)accelerometerUpdateWithData:(CMAccelerometerData *)accelerometerData err
// Read my blog for more details on the angles. It should be obvious that you
// could fire a custom shouldAutorotateToInterfaceOrientation-event here.
UIInterfaceOrientation newInterfaceOrientation = self.interfaceOrientation;
UIInterfaceOrientation newDeviceOrientation = self.deviceOrientation;
UIDeviceOrientation newDeviceOrientation = self.deviceOrientation;

#ifdef DEBUG
NSString* orientationString = nil;
Expand Down

0 comments on commit 3a721de

Please sign in to comment.