Skip to content

Instantly share code, notes, and snippets.

@chrismaddern
Created September 28, 2014 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismaddern/797e3b68b28c726b6c1c to your computer and use it in GitHub Desktop.
Save chrismaddern/797e3b68b28c726b6c1c to your computer and use it in GitHub Desktop.
Clips from my post on web vs. native
<view key="view" contentMode="scaleToFill" id="SHh-SP-yVu">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<mapView mapType="standard" showsUserLocation="YES" showsBuildings="NO" id="UIZ-1B-l3e">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
</mapView>
<button opaque="NO" contentMode="scaleAspectFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="233-h5-Yuj">
<rect key="frame" x="10" y="30" width="40" height="40"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="819-1Q-k2P"/>
<constraint firstAttribute="height" constant="40" id="Nwc-d8-Aed"/>
</constraints>
</button>
<view clipsSubviews="YES" contentMode="scaleToFill" id="oS1-FG-K1g">
<rect key="frame" x="0.0" y="414" width="320" height="100"/>
<subviews>
<toolbar hidden="YES" opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="132-KC-MzF">
<rect key="frame" x="0.0" y="0.0" width="320" height="100"/>
<items/>
</toolbar>
<collectionView opaque="NO" multipleTouchEnabled="YES" contentMode="scaleToFill" alwaysBounceHorizontal="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" minimumZoomScale="0.0" maximumZoomScale="0.0" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="XrZ-bO-LgQ" customClass="BTNProductPickerView">
<rect key="frame" x="0.0" y="0.0" width="320" height="100"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<collectionViewLayout key="collectionViewLayout" id="8m2-5S-iTN" customClass="UBRProductFlowLayout"/>
<cells/>
</collectionView>
</subviews>
</view>
</subviews>
</view>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment