Skip to content

Instantly share code, notes, and snippets.

@atsumori
Created February 4, 2015 04:00

Revisions

  1. atsumori created this gist Feb 4, 2015.
    2 changes: 2 additions & 0 deletions gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationPortrait];
    [[UIDevice currentDevice] setValue:value forKey:@"orientation"];