Skip to content

Commit

Permalink
iPad fix
Browse files Browse the repository at this point in the history
- Fixed demo application load image on iPad
  • Loading branch information
DmitryH committed Oct 14, 2019
1 parent ffdb214 commit b53bf33
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions DocScanningSDK.framework/strip-DSSDK.sh
@@ -0,0 +1,4 @@
#! /bin/sh
mkdir -p $(dirname "$2")
lipo -remove i386 "$1" -o "$2"
lipo -remove x86_64 "$2" -o "$2"
4 changes: 2 additions & 2 deletions Example-DocScanningSDK-iOS.xcodeproj/project.pbxproj
Expand Up @@ -919,7 +919,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 5;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = 4XL92P45YN;
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -961,7 +961,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = YES;
CURRENT_PROJECT_VERSION = 5;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = 4XL92P45YN;
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down
1 change: 1 addition & 0 deletions PhotoSlider/Base.lproj/PhotoSliderViewController.xib
Expand Up @@ -17,6 +17,7 @@
<outlet property="rotateRight" destination="XAm-mW-HJ4" id="c2v-98-mfN"/>
<outlet property="saveButton" destination="39" id="46"/>
<outlet property="settingsButton" destination="6H1-RX-pj7" id="pbR-Rl-H1F"/>
<outlet property="toolBar" destination="22" id="MfB-VY-iPU"/>
<outlet property="view" destination="6" id="7"/>
</connections>
</placeholder>
Expand Down
1 change: 1 addition & 0 deletions PhotoSlider/PhotoSliderViewController.h
Expand Up @@ -22,6 +22,7 @@
@property (nonatomic, weak) IBOutlet UIBarButtonItem *settingsButton;
@property (nonatomic, weak) IBOutlet UIButton *rotateLeft;
@property (nonatomic, weak) IBOutlet UIButton *rotateRight;
@property (nonatomic, weak) IBOutlet UIView *toolBar;
@property (nonatomic, strong) PxMetaImage* inpImage;
@property (nonatomic, strong) PxMetaImage* outImage;

Expand Down
3 changes: 3 additions & 0 deletions PhotoSlider/PhotoSliderViewController.m
Expand Up @@ -221,6 +221,9 @@ - (IBAction)loadAction:(id)sender
preferredStyle:UIAlertControllerStyleActionSheet
];

actionSheet.popoverPresentationController.barButtonItem = self.loadButton;
// actionSheet.popoverPresentationController.sourceView = self.toolBar;

[actionSheet addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
@strongify(self)
[self dismissViewControllerAnimated:YES completion:nil];
Expand Down
8 changes: 3 additions & 5 deletions PhotoSlider/SettingsViewController.xib
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15400" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment version="4352" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15404"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
Expand Down

0 comments on commit b53bf33

Please sign in to comment.