mirror of
https://github.com/zhigang1992/ECSlidingViewController.git
synced 2026-01-13 09:00:55 +08:00
iPad support
This commit is contained in:
@@ -7,13 +7,14 @@
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
27407EEC14D8787E0035FD7F /* iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 27407EEB14D8787E0035FD7F /* iPad.storyboard */; };
|
||||
2750E77114CDB0DF007727A0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2750E77014CDB0DF007727A0 /* UIKit.framework */; };
|
||||
2750E77314CDB0DF007727A0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2750E77214CDB0DF007727A0 /* Foundation.framework */; };
|
||||
2750E77514CDB0DF007727A0 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2750E77414CDB0DF007727A0 /* CoreGraphics.framework */; };
|
||||
2750E77B14CDB0DF007727A0 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 2750E77914CDB0DF007727A0 /* InfoPlist.strings */; };
|
||||
2750E77D14CDB0DF007727A0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E77C14CDB0DF007727A0 /* main.m */; };
|
||||
2750E78114CDB0DF007727A0 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E78014CDB0DF007727A0 /* AppDelegate.m */; };
|
||||
2750E78814CDB114007727A0 /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2750E78714CDB114007727A0 /* Storyboard.storyboard */; };
|
||||
2750E78814CDB114007727A0 /* iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2750E78714CDB114007727A0 /* iPhone.storyboard */; };
|
||||
2750E79414CDB93A007727A0 /* MenuViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E79314CDB93A007727A0 /* MenuViewController.m */; };
|
||||
2750E79714CDB959007727A0 /* FirstTopViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E79614CDB959007727A0 /* FirstTopViewController.m */; };
|
||||
2750E79A14CDB99A007727A0 /* SecondTopViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E79914CDB99A007727A0 /* SecondTopViewController.m */; };
|
||||
@@ -26,6 +27,7 @@
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
27407EEB14D8787E0035FD7F /* iPad.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = iPad.storyboard; sourceTree = "<group>"; };
|
||||
2750E76C14CDB0DF007727A0 /* ECSlidingViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ECSlidingViewController.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
2750E77014CDB0DF007727A0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
||||
2750E77214CDB0DF007727A0 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
||||
@@ -36,7 +38,7 @@
|
||||
2750E77E14CDB0DF007727A0 /* ECSlidingViewController-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ECSlidingViewController-Prefix.pch"; sourceTree = "<group>"; };
|
||||
2750E77F14CDB0DF007727A0 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
||||
2750E78014CDB0DF007727A0 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
|
||||
2750E78714CDB114007727A0 /* Storyboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Storyboard.storyboard; sourceTree = "<group>"; };
|
||||
2750E78714CDB114007727A0 /* iPhone.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = iPhone.storyboard; sourceTree = "<group>"; };
|
||||
2750E79214CDB93A007727A0 /* MenuViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MenuViewController.h; sourceTree = "<group>"; };
|
||||
2750E79314CDB93A007727A0 /* MenuViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MenuViewController.m; sourceTree = "<group>"; };
|
||||
2750E79514CDB959007727A0 /* FirstTopViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FirstTopViewController.h; sourceTree = "<group>"; };
|
||||
@@ -107,7 +109,8 @@
|
||||
2750E77F14CDB0DF007727A0 /* AppDelegate.h */,
|
||||
2750E78014CDB0DF007727A0 /* AppDelegate.m */,
|
||||
2750E77714CDB0DF007727A0 /* Supporting Files */,
|
||||
2750E78714CDB114007727A0 /* Storyboard.storyboard */,
|
||||
2750E78714CDB114007727A0 /* iPhone.storyboard */,
|
||||
27407EEB14D8787E0035FD7F /* iPad.storyboard */,
|
||||
);
|
||||
path = ECSlidingViewController;
|
||||
sourceTree = "<group>";
|
||||
@@ -213,7 +216,8 @@
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
2750E77B14CDB0DF007727A0 /* InfoPlist.strings in Resources */,
|
||||
2750E78814CDB114007727A0 /* Storyboard.storyboard in Resources */,
|
||||
2750E78814CDB114007727A0 /* iPhone.storyboard in Resources */,
|
||||
27407EEC14D8787E0035FD7F /* iPad.storyboard in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -302,7 +306,9 @@
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "ECSlidingViewController/ECSlidingViewController-Prefix.pch";
|
||||
INFOPLIST_FILE = "ECSlidingViewController/ECSlidingViewController-Info.plist";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Debug;
|
||||
@@ -313,7 +319,9 @@
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "ECSlidingViewController/ECSlidingViewController-Prefix.pch";
|
||||
INFOPLIST_FILE = "ECSlidingViewController/ECSlidingViewController-Info.plist";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Release;
|
||||
|
||||
@@ -15,7 +15,13 @@
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
ECSlidingViewController *slidingViewController = (ECSlidingViewController *)self.window.rootViewController;
|
||||
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
|
||||
UIStoryboard *storyboard;
|
||||
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
|
||||
storyboard = [UIStoryboard storyboardWithName:@"iPhone" bundle:nil];
|
||||
} else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||
storyboard = [UIStoryboard storyboardWithName:@"iPad" bundle:nil];
|
||||
}
|
||||
|
||||
slidingViewController.topViewController = [storyboard instantiateViewControllerWithIdentifier:@"FirstTop"];
|
||||
|
||||
|
||||
@@ -27,7 +27,9 @@
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>Storyboard</string>
|
||||
<string>iPhone</string>
|
||||
<key>UIMainStoryboardFile~ipad</key>
|
||||
<string>iPad</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
|
||||
@@ -21,7 +21,13 @@
|
||||
self.view.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.view.layer.bounds].CGPath;
|
||||
self.view.clipsToBounds = NO;
|
||||
|
||||
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
|
||||
UIStoryboard *storyboard;
|
||||
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
|
||||
storyboard = [UIStoryboard storyboardWithName:@"iPhone" bundle:nil];
|
||||
} else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||
storyboard = [UIStoryboard storyboardWithName:@"iPad" bundle:nil];
|
||||
}
|
||||
|
||||
if (![self.slidingViewController.underLeftViewController isKindOfClass:[MenuViewController class]]) {
|
||||
self.slidingViewController.underLeftViewController = [storyboard instantiateViewControllerWithIdentifier:@"Menu"];
|
||||
|
||||
@@ -48,7 +48,13 @@
|
||||
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
NSString *identifier = [NSString stringWithFormat:@"%@Top", [self.menuItems objectAtIndex:indexPath.row]];
|
||||
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
|
||||
UIStoryboard *storyboard;
|
||||
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
|
||||
storyboard = [UIStoryboard storyboardWithName:@"iPhone" bundle:nil];
|
||||
} else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||
storyboard = [UIStoryboard storyboardWithName:@"iPad" bundle:nil];
|
||||
}
|
||||
UIViewController *newTopViewController = [storyboard instantiateViewControllerWithIdentifier:identifier];
|
||||
|
||||
[self.slidingViewController anchorTopViewOffScreenTo:ECRight animations:nil onComplete:^{
|
||||
|
||||
@@ -15,7 +15,14 @@
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
if (![self.slidingViewController.underLeftViewController isKindOfClass:[MenuViewController class]]) {
|
||||
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
|
||||
UIStoryboard *storyboard;
|
||||
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
|
||||
storyboard = [UIStoryboard storyboardWithName:@"iPhone" bundle:nil];
|
||||
} else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||
storyboard = [UIStoryboard storyboardWithName:@"iPad" bundle:nil];
|
||||
}
|
||||
|
||||
self.slidingViewController.underLeftViewController = [storyboard instantiateViewControllerWithIdentifier:@"Menu"];
|
||||
}
|
||||
self.slidingViewController.underRightViewController = nil;
|
||||
|
||||
@@ -14,7 +14,13 @@
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
|
||||
UIStoryboard *storyboard;
|
||||
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
|
||||
storyboard = [UIStoryboard storyboardWithName:@"iPhone" bundle:nil];
|
||||
} else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||
storyboard = [UIStoryboard storyboardWithName:@"iPad" bundle:nil];
|
||||
}
|
||||
|
||||
if (![self.slidingViewController.underLeftViewController isKindOfClass:[MenuViewController class]]) {
|
||||
self.slidingViewController.underLeftViewController = [storyboard instantiateViewControllerWithIdentifier:@"Menu"];
|
||||
|
||||
221
ECSlidingViewController/iPad.storyboard
Normal file
221
ECSlidingViewController/iPad.storyboard
Normal file
@@ -0,0 +1,221 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="1.0" toolsVersion="1938" systemVersion="11C74" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" initialViewController="SIb-O2-Xa4">
|
||||
<dependencies>
|
||||
<development defaultVersion="4200" identifier="xcode"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="933"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<scene sceneID="vux-Sf-7zs">
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="WAQ-KG-3dU" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<viewController storyboardIdentifier="Menu" id="K2H-Q6-O20" customClass="MenuViewController" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="dD5-Ap-SBZ">
|
||||
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="So7-0H-dny">
|
||||
<rect key="frame" x="0.0" y="0.0" width="768" height="1004"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="K2H-Q6-O20" id="Fyv-3Y-MrJ"/>
|
||||
<outlet property="delegate" destination="K2H-Q6-O20" id="4p6-qx-0R0"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
</viewController>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="504" y="-1153"/>
|
||||
</scene>
|
||||
<scene sceneID="srH-xs-0fc">
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="30g-af-uzO" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<viewController storyboardIdentifier="SecondTop" id="8Oo-HP-N9T" customClass="SecondTopViewController" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="wVL-ud-63R">
|
||||
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<navigationBar contentMode="scaleToFill" id="FJK-bi-dkB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="768" height="44"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<items>
|
||||
<navigationItem title="Second" id="h3F-Pd-bbl">
|
||||
<barButtonItem key="leftBarButtonItem" title="Menu" id="sxd-jD-FzG">
|
||||
<connections>
|
||||
<action selector="revealMenu:" destination="8Oo-HP-N9T" id="6C1-BN-1pk"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
</navigationItem>
|
||||
</items>
|
||||
</navigationBar>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="0.0" green="0.83163265310000001" blue="0.68719590809999997" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</view>
|
||||
</viewController>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="1366" y="-2316"/>
|
||||
</scene>
|
||||
<scene sceneID="m0k-BS-fu1">
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="pOm-Ve-zqX" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<viewController storyboardIdentifier="ThirdTop" id="VuW-Q4-Kdw" customClass="ThirdTopViewController" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="Wkv-sR-l1J">
|
||||
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<navigationBar contentMode="scaleToFill" id="jem-Wp-5bW">
|
||||
<rect key="frame" x="0.0" y="0.0" width="768" height="44"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<items>
|
||||
<navigationItem title="Third" id="rB5-Wy-SII">
|
||||
<barButtonItem key="leftBarButtonItem" title="Menu" id="NOX-S1-bI9">
|
||||
<connections>
|
||||
<action selector="revealMenu:" destination="VuW-Q4-Kdw" id="HOY-6B-zJf"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
</navigationItem>
|
||||
</items>
|
||||
</navigationBar>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="0.31581848979999999" green="0.63389155529999996" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</view>
|
||||
</viewController>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="1366" y="-3472"/>
|
||||
</scene>
|
||||
<scene sceneID="krM-pN-5xZ">
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="sXC-W5-s9Y" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<viewController storyboardIdentifier="FirstTop" id="euu-E6-BqD" customClass="FirstTopViewController" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="CqQ-Cm-tng">
|
||||
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<navigationBar contentMode="scaleToFill" id="tcr-iv-7Sr">
|
||||
<rect key="frame" x="0.0" y="0.0" width="768" height="44"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<items>
|
||||
<navigationItem title="First" id="ldS-f4-r1F">
|
||||
<barButtonItem key="leftBarButtonItem" title="Menu" id="uGI-xd-sqK">
|
||||
<connections>
|
||||
<action selector="revealMenu:" destination="euu-E6-BqD" id="nbM-Tr-ZsM"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
<barButtonItem key="rightBarButtonItem" title="Right" id="GDu-Yr-9uC">
|
||||
<connections>
|
||||
<action selector="revealUnderRight:" destination="euu-E6-BqD" id="u88-7W-6tV"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
</navigationItem>
|
||||
</items>
|
||||
</navigationBar>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="1" green="0.5" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</view>
|
||||
</viewController>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="1366" y="-1153"/>
|
||||
</scene>
|
||||
<scene sceneID="lD1-B4-aXE">
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="cmP-nh-T4e" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<tableViewController storyboardIdentifier="UnderRight" id="HUx-p0-9NJ" customClass="UnderRightViewController" sceneMemberID="viewController">
|
||||
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="dGB-Ia-LVm">
|
||||
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<searchBar key="tableHeaderView" contentMode="redraw" id="Y1p-O0-vce">
|
||||
<rect key="frame" x="0.0" y="0.0" width="768" height="44"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<textInputTraits key="textInputTraits"/>
|
||||
<connections>
|
||||
<outlet property="delegate" destination="HUx-p0-9NJ" id="ao1-c7-ddz"/>
|
||||
</connections>
|
||||
</searchBar>
|
||||
<prototypes>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="YyM-qK-Xq6">
|
||||
<rect key="frame" x="0.0" y="66" width="768" height="44"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
|
||||
<rect key="frame" x="0.0" y="0.0" width="768" height="43"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
</tableViewCell>
|
||||
</prototypes>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="HUx-p0-9NJ" id="8FX-ZC-qny"/>
|
||||
<outlet property="delegate" destination="HUx-p0-9NJ" id="lsN-Qj-wxU"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
<connections>
|
||||
<outlet property="searchDisplayController" destination="Tyo-Kv-5mr" id="9GB-UB-SDR"/>
|
||||
</connections>
|
||||
</tableViewController>
|
||||
<searchDisplayController id="Tyo-Kv-5mr">
|
||||
<connections>
|
||||
<outlet property="delegate" destination="HUx-p0-9NJ" id="UHw-xq-eh9"/>
|
||||
<outlet property="searchBar" destination="Y1p-O0-vce" id="ILm-VF-UNV"/>
|
||||
<outlet property="searchContentsController" destination="HUx-p0-9NJ" id="93h-mV-LEm"/>
|
||||
<outlet property="searchResultsDataSource" destination="HUx-p0-9NJ" id="bdp-2E-aXN"/>
|
||||
<outlet property="searchResultsDelegate" destination="HUx-p0-9NJ" id="ZLg-ye-aSe"/>
|
||||
</connections>
|
||||
</searchDisplayController>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="2228" y="-1153"/>
|
||||
</scene>
|
||||
<scene sceneID="b9f-M7-SOp">
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="1dW-ho-hEk" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<viewController id="SIb-O2-Xa4" customClass="InitialSlidingViewController" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="blf-xf-5ab">
|
||||
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
</viewController>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="-362" y="-1153"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<classes>
|
||||
<class className="ECSlidingViewController" superclassName="UIViewController">
|
||||
<source key="sourceIdentifier" type="project" relativePath="./Classes/ECSlidingViewController.h"/>
|
||||
</class>
|
||||
<class className="FirstTopViewController" superclassName="UIViewController">
|
||||
<source key="sourceIdentifier" type="project" relativePath="./Classes/FirstTopViewController.h"/>
|
||||
<relationships>
|
||||
<relationship kind="action" name="revealMenu:"/>
|
||||
<relationship kind="action" name="revealUnderRight:"/>
|
||||
</relationships>
|
||||
</class>
|
||||
<class className="InitialSlidingViewController" superclassName="ECSlidingViewController">
|
||||
<source key="sourceIdentifier" type="project" relativePath="./Classes/InitialSlidingViewController.h"/>
|
||||
</class>
|
||||
<class className="MenuViewController" superclassName="UIViewController">
|
||||
<source key="sourceIdentifier" type="project" relativePath="./Classes/MenuViewController.h"/>
|
||||
</class>
|
||||
<class className="SecondTopViewController" superclassName="UIViewController">
|
||||
<source key="sourceIdentifier" type="project" relativePath="./Classes/SecondTopViewController.h"/>
|
||||
<relationships>
|
||||
<relationship kind="action" name="revealMenu:"/>
|
||||
</relationships>
|
||||
</class>
|
||||
<class className="ThirdTopViewController" superclassName="UIViewController">
|
||||
<source key="sourceIdentifier" type="project" relativePath="./Classes/ThirdTopViewController.h"/>
|
||||
<relationships>
|
||||
<relationship kind="action" name="revealMenu:"/>
|
||||
</relationships>
|
||||
</class>
|
||||
<class className="UnderRightViewController" superclassName="UITableViewController">
|
||||
<source key="sourceIdentifier" type="project" relativePath="./Classes/UnderRightViewController.h"/>
|
||||
</class>
|
||||
</classes>
|
||||
<simulatedMetricsContainer key="defaultSimulatedMetrics">
|
||||
<simulatedStatusBarMetrics key="statusBar" statusBarStyle="blackTranslucent"/>
|
||||
<simulatedOrientationMetrics key="orientation"/>
|
||||
<simulatedScreenMetrics key="destination"/>
|
||||
</simulatedMetricsContainer>
|
||||
</document>
|
||||
@@ -13,6 +13,7 @@ This project is an example app that showcases the uses for `ECSlidingViewControl
|
||||
* Configurable anchor positions, with automatic adjustments for orientation change. See "Anchor Position Geometry" section below.
|
||||
* There are no assumptions about the size and layout of the views under the top view. That is up to the implementor.
|
||||
* The child views can be changed at anytime.
|
||||
* iPad support.
|
||||
* See [ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.h](https://github.com/edgecase/ECSlidingViewController/blob/master/ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.h) for options and configuration.
|
||||
|
||||
## Requirements
|
||||
|
||||
Reference in New Issue
Block a user