-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed ObjectiveC APIDemo custom playback controls issue.
PiperOrigin-RevId: 676606721
- Loading branch information
1 parent
6908d41
commit e02082e
Showing
19 changed files
with
281 additions
and
172 deletions.
There are no files selected for viewing
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
107 changes: 21 additions & 86 deletions
107
Objective-C/advanced/APIDemo/APIDemo/Base.lproj/Main.storyboard
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23089" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES"> | ||
<device id="retina4_7" orientation="portrait" appearance="light"/> | ||
<dependencies> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23077"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<objects> | ||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
<view clipsSubviews="YES" contentMode="scaleToFill" placeholderIntrinsicWidth="63" placeholderIntrinsicHeight="34" translatesAutoresizingMaskIntoConstraints="NO" id="hcJ-K0-VFO" customClass="CustomControlsView"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
<subviews> | ||
<view contentMode="scaleToFill" fixedFrame="YES" placeholderIntrinsicWidth="63" placeholderIntrinsicHeight="34" translatesAutoresizingMaskIntoConstraints="NO" id="pao-J4-Vnr" userLabel="Controls Inner View"> | ||
<rect key="frame" x="0.0" y="0.0" width="63" height="34"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/> | ||
<subviews> | ||
<button opaque="NO" contentMode="scaleAspectFit" fixedFrame="YES" preservesSuperviewLayoutMargins="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="45d-iM-MBo"> | ||
<rect key="frame" x="5" y="5" width="24" height="24"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/> | ||
<accessibility key="accessibilityConfiguration"> | ||
<accessibilityTraits key="traits" button="YES" image="YES"/> | ||
</accessibility> | ||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/> | ||
<state key="normal" image="video_pause"/> | ||
<connections> | ||
<action selector="playPause:" destination="hcJ-K0-VFO" eventType="touchUpInside" id="0CB-eL-LvM"/> | ||
</connections> | ||
</button> | ||
<button opaque="NO" contentMode="scaleAspectFit" fixedFrame="YES" preservesSuperviewLayoutMargins="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="EeV-x8-pU7"> | ||
<rect key="frame" x="34" y="5" width="24" height="24"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/> | ||
<accessibility key="accessibilityConfiguration"> | ||
<accessibilityTraits key="traits" button="YES" image="YES"/> | ||
</accessibility> | ||
<state key="normal" image="video_mute"/> | ||
<connections> | ||
<action selector="muteUnmute:" destination="hcJ-K0-VFO" eventType="touchUpInside" id="WHq-Bk-O5c"/> | ||
</connections> | ||
</button> | ||
</subviews> | ||
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.79650297619047616" colorSpace="custom" customColorSpace="sRGB"/> | ||
</view> | ||
</subviews> | ||
<constraints> | ||
<constraint firstAttribute="height" constant="34" id="UmE-7W-Sbr"/> | ||
<constraint firstAttribute="width" constant="63" id="nll-Ck-Ktr"/> | ||
</constraints> | ||
<edgeInsets key="layoutMargins" top="8" left="8" bottom="8" right="8"/> | ||
<connections> | ||
<outlet property="controlsView" destination="pao-J4-Vnr" id="u9k-TG-zXG"/> | ||
<outlet property="muteButton" destination="EeV-x8-pU7" id="3ms-b3-3dN"/> | ||
<outlet property="playButton" destination="45d-iM-MBo" id="3aL-mq-Onh"/> | ||
</connections> | ||
<point key="canvasLocation" x="-180" y="-635"/> | ||
</view> | ||
</objects> | ||
<resources> | ||
<image name="video_mute" width="96" height="96"/> | ||
<image name="video_pause" width="96" height="96"/> | ||
</resources> | ||
</document> |
Oops, something went wrong.