Last active
August 26, 2015 10:50
-
-
Save julian-weinert/5059916f4f87ffe0178e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="GUs-KQ-G3b"> | |
<dependencies> | |
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> | |
</dependencies> | |
<scenes> | |
<!--Navigation Controller--> | |
<scene sceneID="JDN-Wl-fKI"> | |
<objects> | |
<navigationController id="GUs-KQ-G3b" sceneMemberID="viewController"> | |
<navigationBar key="navigationBar" contentMode="scaleToFill" id="Mco-rD-XDx"> | |
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/> | |
<autoresizingMask key="autoresizingMask"/> | |
</navigationBar> | |
<connections> | |
<segue destination="nJT-Tb-zSt" kind="relationship" relationship="rootViewController" id="eoE-f2-hxA"/> | |
</connections> | |
</navigationController> | |
<placeholder placeholderIdentifier="IBFirstResponder" id="JpT-Gw-2Ls" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
</objects> | |
<point key="canvasLocation" x="-535" y="174"/> | |
</scene> | |
<!--View Controller--> | |
<scene sceneID="U1F-WX-vW6"> | |
<objects> | |
<tableViewController id="nJT-Tb-zSt" customClass="ViewController" sceneMemberID="viewController"> | |
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" separatorStyle="default" rowHeight="44" sectionHeaderHeight="10" sectionFooterHeight="10" id="6FL-iA-ukM"> | |
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/> | |
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | |
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/> | |
<prototypes> | |
<tableViewCell contentMode="scaleToFill" selectionStyle="default" accessoryType="detailButton" indentationWidth="10" reuseIdentifier="identifier" editingAccessoryType="detailButton" textLabel="8hy-AX-sdg" detailTextLabel="UpK-bY-TVi" style="IBUITableViewCellStyleValue1" id="LEC-tP-jRE"> | |
<autoresizingMask key="autoresizingMask"/> | |
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="LEC-tP-jRE" id="SbN-me-pXX"> | |
<autoresizingMask key="autoresizingMask"/> | |
<subviews> | |
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="8hy-AX-sdg"> | |
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | |
<fontDescription key="fontDescription" type="system" pointSize="16"/> | |
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/> | |
<nil key="highlightedColor"/> | |
</label> | |
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Detail" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="UpK-bY-TVi"> | |
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | |
<fontDescription key="fontDescription" type="system" pointSize="16"/> | |
<color key="textColor" red="0.55686274509803924" green="0.55686274509803924" blue="0.57647058823529407" alpha="1" colorSpace="calibratedRGB"/> | |
<nil key="highlightedColor"/> | |
</label> | |
</subviews> | |
</tableViewCellContentView> | |
</tableViewCell> | |
</prototypes> | |
<connections> | |
<outlet property="dataSource" destination="nJT-Tb-zSt" id="9as-Dj-p3c"/> | |
<outlet property="delegate" destination="nJT-Tb-zSt" id="UXW-Oy-4KF"/> | |
</connections> | |
</tableView> | |
<navigationItem key="navigationItem" id="0UT-Bt-MSu"/> | |
</tableViewController> | |
<placeholder placeholderIdentifier="IBFirstResponder" id="zrG-dF-ueG" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
</objects> | |
<point key="canvasLocation" x="294" y="174"/> | |
</scene> | |
</scenes> | |
</document> |
This file contains hidden or 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
#import <UIKit/UIKit.h> | |
@interface ViewController : UITableViewController | |
@end |
This file contains hidden or 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
#import "ViewController.h" | |
@implementation ViewController | |
- (void)viewDidLoad { | |
[[self navigationItem] setRightBarButtonItem:[self editButtonItem]]; | |
} | |
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { | |
return 2; | |
} | |
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { | |
if (section == 0) { | |
return 1; | |
} | |
else if (section == 1) { | |
return 2; | |
} | |
return 0; | |
} | |
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
return [tableView dequeueReusableCellWithIdentifier:@"identifier" forIndexPath:indexPath]; | |
} | |
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { | |
return UITableViewCellEditingStyleNone; | |
} | |
- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath { | |
return NO; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment