This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)logInterfaceOrientation { | |
if (self.interfaceOrientation == UIInterfaceOrientationPortrait) { | |
NSLog(@"UIInterfaceOrientationPortrait"); | |
} | |
if (self.interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) { | |
NSLog(@"UIInterfaceOrientationPortraitUpsideDown"); | |
} | |
if (self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft) { | |
NSLog(@"UIInterfaceOrientationLandscapeLeft"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export PATH=/opt/local/bin/:/opt/local/sbin:$PATH:/usr/local/bin: | |
carthagePath=`which carthage` | |
if [[ ! -f ${carthagePath} ]]; then | |
echo "ERROR: You need to install Carthage first, you can use brew to simplify process: | |
brew install carthage, OR, | |
download package from https://github.com/Carthage/Carthage" | |
exit 0; |