Skip to content

Commit

Permalink
Merge pull request #44 from IFTTT/orientation-fix
Browse files Browse the repository at this point in the history
Orientation fix
  • Loading branch information
lauraskelton committed Oct 6, 2015
2 parents 6a4b9e5 + 0c04ffa commit c2b35b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ podfile: FiltersExample/Podfile
env:
- LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8
script:
- set -o pipefail && xcodebuild -workspace FiltersExample/FastttCameraDemo.xcworkspace -scheme
FastttCameraDemo -sdk iphonesimulator -destination "platform=iOS Simulator,OS=9.0,name=iPhone 5s" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean
test | xcpretty -c
- set -o pipefail && xcodebuild -workspace FiltersExample/FastttCameraDemo.xcworkspace -scheme FastttCameraDemo -sdk iphonesimulator -destination "platform=iOS Simulator,OS=9.0,name=iPhone 5s" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean test | xcpretty -c
- pod lib lint --quick
- obcd --path FastttCamera find HeaderStyle
after_success: slather
5 changes: 5 additions & 0 deletions FastttCamera/Filters/FastttFilterCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,11 @@ - (void)_setPreviewVideoOrientation
|| orientation == UIDeviceOrientationFaceDown) {
orientation = UIDeviceOrientationPortrait;
}

if (!self.interfaceRotatesWithOrientation) {
orientation = self.fixedInterfaceOrientation;
}

_stillCamera.outputImageOrientation = (UIInterfaceOrientation)orientation;
}

Expand Down
2 changes: 2 additions & 0 deletions FiltersExample/FastttCameraDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = FastttCameraDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand All @@ -514,6 +515,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = FastttCameraDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand Down

0 comments on commit c2b35b4

Please sign in to comment.