Skip to content

Commit f0b364a

Browse files
committed
Add default case for unknown interface orientations
1 parent 2f88696 commit f0b364a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Ejecta/EJBindingEjectaCore.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)index
214214
case UIInterfaceOrientationLandscapeLeft: angle = -90; break;
215215
case UIInterfaceOrientationLandscapeRight: angle = 90; break;
216216
case UIInterfaceOrientationPortraitUpsideDown: angle = 180; break;
217+
default: angle = 0; break;
217218
}
218219
return JSValueMakeNumber(ctx, angle);
219220
}

0 commit comments

Comments
 (0)