diff options
author | siqi <me@siqi.fr> | 2013-07-15 13:09:26 +0200 |
---|---|---|
committer | siqi <me@siqi.fr> | 2013-07-15 13:09:26 +0200 |
commit | 99aaa7d985a84302a9945633727bcb444329353e (patch) | |
tree | 501dc048f2bd81cecab8af3f96aead50b415684b /ios | |
parent | 84ceab8140e6460ed42e04bdc72bab598ed167ba (diff) |
click on next slide preview will bring users to the next slide
Diffstat (limited to 'ios')
-rw-r--r-- | ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard | 3 | ||||
-rw-r--r-- | ios/iosremote/iosremote/slideShow_vc.m | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard index 1867d814c55d..9e5f891861d5 100644 --- a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard +++ b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard @@ -299,7 +299,7 @@ <rect key="frame" x="3" y="3" width="86" height="172"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" heightSizable="YES"/> <subviews> - <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" verticalCompressionResistancePriority="1000" id="B2g-rO-b9G"> + <imageView contentMode="scaleAspectFit" verticalCompressionResistancePriority="1000" id="B2g-rO-b9G"> <rect key="frame" x="0.0" y="104" width="86" height="68"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES" heightSizable="YES"/> <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> @@ -627,6 +627,7 @@ <class className="slideShowPreviewTable_vc" superclassName="UITableViewController"> <source key="sourceIdentifier" type="project" relativePath="./Classes/slideShowPreviewTable_vc.h"/> <relationships> + <relationship kind="action" name="startPresentationAction:"/> <relationship kind="outlet" name="optionsTable" candidateClass="UITableView"/> </relationships> </class> diff --git a/ios/iosremote/iosremote/slideShow_vc.m b/ios/iosremote/iosremote/slideShow_vc.m index 9504e79d57f8..c8f58fc6494e 100644 --- a/ios/iosremote/iosremote/slideShow_vc.m +++ b/ios/iosremote/iosremote/slideShow_vc.m @@ -186,8 +186,8 @@ } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { + UITouch *touch = [[event allTouches] anyObject]; if (!self.touchPointerImage.isHidden){ - UITouch *touch = [[event allTouches] anyObject]; CGPoint loc = [touch locationInView:self.touchPointerImage]; if (loc.x >= 0 && loc.x <= self.touchPointerImage.frame.size.width && loc.y >= 0 && loc.y <= self.touchPointerImage.frame.size.height){ @@ -198,6 +198,12 @@ [self.movingPointer setHidden:NO]; } } + + if ([touch view] == self.secondarySlideView) + { + // Change to the next slide when secondary slide is clicked + [self nextSlideAction:nil]; + } } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event |