Skip to content

Commit

Permalink
Initial attempt.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfurrow committed Jul 29, 2013
1 parent b6e0879 commit 5501ef4
Show file tree
Hide file tree
Showing 14 changed files with 266 additions and 163 deletions.
1 change: 1 addition & 0 deletions Reveal.framework/Headers
1 change: 1 addition & 0 deletions Reveal.framework/Reveal
17 changes: 17 additions & 0 deletions Reveal.framework/Versions/A/Headers/IBARevealLoader.h
@@ -0,0 +1,17 @@
//
// Copyright (c) 2013 Itty Bitty Apps. All rights reserved.

#import <Foundation/Foundation.h>

extern NSString * const IBARevealLoaderRequestStartNotification;
extern NSString * const IBARevealLoaderRequestStopNotification;

extern NSString * const IBARevealLoaderSetOptionsNotification;
extern NSString * const IBARevealLoaderOptionsLogLevelMaskKey;

@interface IBARevealLoader : NSObject

+ (void)startServer;
+ (void)stopServer;

@end
53 changes: 53 additions & 0 deletions Reveal.framework/Versions/A/Headers/IBARevealLogger.h
@@ -0,0 +1,53 @@
// Copyright (c) 2013 Itty Bitty Apps Pty Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

/*!
\brief The Reveal Log level bit flags.
\discussion These flags are addative. Ie, you should bitwise OR them together.
\seealso IBARevealLoggerSetLevelMask
\seealso IBARevealLoggerGetLevelMask
Example:
// Enable Error, Warning and Info logger levels.
IBARevealLoggerSetLevelMask(IBARevealLogLevelError|IBARevealLogLevelWarn|IBARevealLogLevelInfo);
*/
typedef NS_OPTIONS(int32_t, IBARevealLogLevel)
{
IBARevealLogLevelNone = 0,
IBARevealLogLevelDebug = (1 << 0),
IBARevealLogLevelInfo = (1 << 1),
IBARevealLogLevelWarn = (1 << 2),
IBARevealLogLevelError = (1 << 3)
};

/*!
\brief Set the Reveal logger level mask.
\param mask A bit mask which is a combination of the IBARevealLogLevel enum options.
\discussion If you do not wish to see log messages from Reveal you should call this function with an appropriate level mask as early in your application's lifecycle as possible. For example in your application's main() function.
Example:
// Enable Error, Warning and Info logger levels.
IBARevealLoggerSetLevelMask(IBARevealLogLevelError|IBARevealLogLevelWarn|IBARevealLogLevelInfo);
*/
extern void IBARevealLoggerSetLevelMask(int32_t mask);

/*!
\brief Get the current Reveal logger level mask.
\return A bit mask representing the levels at which Reveal is currently logging.
\discussion The default Reveal Logger level mask is IBARevealLogLevelError|IBARevealLogLevelWarn|IBARevealLogLevelInfo.
Example:
// Turn off the Info log level.
IBARevealLoggerSetLevelMask(IBARevealLoggerGetLevelMask() & ~IBARevealLogLevelInfo);
*/
extern int32_t IBARevealLoggerGetLevelMask(void);
5 changes: 5 additions & 0 deletions Reveal.framework/Versions/A/Headers/Reveal.h
@@ -0,0 +1,5 @@
// Copyright (c) 2013 Itty Bitty Apps Pty Ltd. All rights reserved.
//

#import "IBARevealLogger.h"
#import "IBARevealLoader.h"
Binary file added Reveal.framework/Versions/A/Reveal
Binary file not shown.
1 change: 1 addition & 0 deletions Reveal.framework/Versions/Current
36 changes: 30 additions & 6 deletions UITableViewCell-Swipe-for-Options.xcodeproj/project.pbxproj
Expand Up @@ -15,13 +15,16 @@
5EA94CD717A6B60D0038BF1C /* TLAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5EA94CD617A6B60D0038BF1C /* TLAppDelegate.m */; };
5EA94CDA17A6B60D0038BF1C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5EA94CD817A6B60D0038BF1C /* Main.storyboard */; };
5EA94CDD17A6B60D0038BF1C /* TLMasterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5EA94CDC17A6B60D0038BF1C /* TLMasterViewController.m */; };
5EA94CE017A6B60D0038BF1C /* TLDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5EA94CDF17A6B60D0038BF1C /* TLDetailViewController.m */; };
5EA94CE217A6B60D0038BF1C /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5EA94CE117A6B60D0038BF1C /* Images.xcassets */; };
5EA94CE917A6B60D0038BF1C /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EA94CE817A6B60D0038BF1C /* XCTest.framework */; };
5EA94CEA17A6B60D0038BF1C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EA94CC617A6B60D0038BF1C /* Foundation.framework */; };
5EA94CEB17A6B60D0038BF1C /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EA94CCA17A6B60D0038BF1C /* UIKit.framework */; };
5EA94CF317A6B60D0038BF1C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5EA94CF117A6B60D0038BF1C /* InfoPlist.strings */; };
5EA94CF517A6B60D0038BF1C /* UITableViewCell_Swipe_for_OptionsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5EA94CF417A6B60D0038BF1C /* UITableViewCell_Swipe_for_OptionsTests.m */; };
5EA94D0017A6C1140038BF1C /* TLSwipeForOptionsCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 5EA94CFF17A6C1140038BF1C /* TLSwipeForOptionsCell.m */; };
5EA94D0217A6C3F10038BF1C /* Reveal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EA94D0117A6C3F10038BF1C /* Reveal.framework */; };
5EA94D0417A6C3F90038BF1C /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EA94D0317A6C3F90038BF1C /* QuartzCore.framework */; };
5EA94D0617A6C3FF0038BF1C /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EA94D0517A6C3FF0038BF1C /* CFNetwork.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -48,24 +51,30 @@
5EA94CD917A6B60D0038BF1C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
5EA94CDB17A6B60D0038BF1C /* TLMasterViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TLMasterViewController.h; sourceTree = "<group>"; };
5EA94CDC17A6B60D0038BF1C /* TLMasterViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TLMasterViewController.m; sourceTree = "<group>"; };
5EA94CDE17A6B60D0038BF1C /* TLDetailViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TLDetailViewController.h; sourceTree = "<group>"; };
5EA94CDF17A6B60D0038BF1C /* TLDetailViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TLDetailViewController.m; sourceTree = "<group>"; };
5EA94CE117A6B60D0038BF1C /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
5EA94CE717A6B60D0038BF1C /* UITableViewCell-Swipe-for-OptionsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UITableViewCell-Swipe-for-OptionsTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
5EA94CE817A6B60D0038BF1C /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
5EA94CF017A6B60D0038BF1C /* UITableViewCell-Swipe-for-OptionsTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "UITableViewCell-Swipe-for-OptionsTests-Info.plist"; sourceTree = "<group>"; };
5EA94CF217A6B60D0038BF1C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
5EA94CF417A6B60D0038BF1C /* UITableViewCell_Swipe_for_OptionsTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UITableViewCell_Swipe_for_OptionsTests.m; sourceTree = "<group>"; };
5EA94CFE17A6C1140038BF1C /* TLSwipeForOptionsCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLSwipeForOptionsCell.h; sourceTree = "<group>"; };
5EA94CFF17A6C1140038BF1C /* TLSwipeForOptionsCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLSwipeForOptionsCell.m; sourceTree = "<group>"; };
5EA94D0117A6C3F10038BF1C /* Reveal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Reveal.framework; sourceTree = "<group>"; };
5EA94D0317A6C3F90038BF1C /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
5EA94D0517A6C3FF0038BF1C /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
5EA94CC017A6B60D0038BF1C /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
5EA94D0617A6C3FF0038BF1C /* CFNetwork.framework in Frameworks */,
5EA94D0417A6C3F90038BF1C /* QuartzCore.framework in Frameworks */,
5EA94CC917A6B60D0038BF1C /* CoreGraphics.framework in Frameworks */,
5EA94CCB17A6B60D0038BF1C /* UIKit.framework in Frameworks */,
5EA94CC717A6B60D0038BF1C /* Foundation.framework in Frameworks */,
5EA94D0217A6C3F10038BF1C /* Reveal.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -104,6 +113,9 @@
5EA94CC517A6B60D0038BF1C /* Frameworks */ = {
isa = PBXGroup;
children = (
5EA94D0517A6C3FF0038BF1C /* CFNetwork.framework */,
5EA94D0317A6C3F90038BF1C /* QuartzCore.framework */,
5EA94D0117A6C3F10038BF1C /* Reveal.framework */,
5EA94CC617A6B60D0038BF1C /* Foundation.framework */,
5EA94CC817A6B60D0038BF1C /* CoreGraphics.framework */,
5EA94CCA17A6B60D0038BF1C /* UIKit.framework */,
Expand All @@ -120,8 +132,8 @@
5EA94CD817A6B60D0038BF1C /* Main.storyboard */,
5EA94CDB17A6B60D0038BF1C /* TLMasterViewController.h */,
5EA94CDC17A6B60D0038BF1C /* TLMasterViewController.m */,
5EA94CDE17A6B60D0038BF1C /* TLDetailViewController.h */,
5EA94CDF17A6B60D0038BF1C /* TLDetailViewController.m */,
5EA94CFE17A6C1140038BF1C /* TLSwipeForOptionsCell.h */,
5EA94CFF17A6C1140038BF1C /* TLSwipeForOptionsCell.m */,
5EA94CE117A6B60D0038BF1C /* Images.xcassets */,
5EA94CCD17A6B60D0038BF1C /* Supporting Files */,
);
Expand Down Expand Up @@ -256,9 +268,9 @@
buildActionMask = 2147483647;
files = (
5EA94CDD17A6B60D0038BF1C /* TLMasterViewController.m in Sources */,
5EA94CE017A6B60D0038BF1C /* TLDetailViewController.m in Sources */,
5EA94CD717A6B60D0038BF1C /* TLAppDelegate.m in Sources */,
5EA94CD317A6B60D0038BF1C /* main.m in Sources */,
5EA94D0017A6C1140038BF1C /* TLSwipeForOptionsCell.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -381,9 +393,14 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "UITableViewCell-Swipe-for-Options/UITableViewCell-Swipe-for-Options-Prefix.pch";
INFOPLIST_FILE = "UITableViewCell-Swipe-for-Options/UITableViewCell-Swipe-for-Options-Info.plist";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
Expand All @@ -394,9 +411,14 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "UITableViewCell-Swipe-for-Options/UITableViewCell-Swipe-for-Options-Prefix.pch";
INFOPLIST_FILE = "UITableViewCell-Swipe-for-Options/UITableViewCell-Swipe-for-Options-Info.plist";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
Expand Down Expand Up @@ -461,6 +483,7 @@
5EA94CFA17A6B60D0038BF1C /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
5EA94CFB17A6B60D0038BF1C /* Build configuration list for PBXNativeTarget "UITableViewCell-Swipe-for-OptionsTests" */ = {
isa = XCConfigurationList;
Expand All @@ -469,6 +492,7 @@
5EA94CFD17A6B60D0038BF1C /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
63 changes: 9 additions & 54 deletions UITableViewCell-Swipe-for-Options/Base.lproj/Main.storyboard
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4451" systemVersion="13A461" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="rS3-R9-Ivy">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4488.1" systemVersion="12E55" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="rS3-R9-Ivy">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3676"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3715.3"/>
</dependencies>
<scenes>
<!--Navigation Controller-->
Expand All @@ -19,36 +19,23 @@
</objects>
<point key="canvasLocation" x="-1" y="64"/>
</scene>
<!--class Prefix:identifier Master View Controller - Master-->
<!--Master View Controller - Master-->
<scene sceneID="VgW-fR-Quf">
<objects>
<tableViewController title="Master" id="pGg-6v-bdr" customClass="TLMasterViewController" sceneMemberID="viewController">
<tableView key="view" opaque="NO" clipsSubviews="YES" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="mLL-gJ-YKr">
<tableView key="view" opaque="NO" clipsSubviews="YES" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="86" sectionHeaderHeight="22" sectionFooterHeight="22" id="mLL-gJ-YKr">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Cell" textLabel="2pz-XF-uhl" style="IBUITableViewCellStyleDefault" id="m0d-ak-lc9">
<rect key="frame" x="0.0" y="86" width="320" height="44"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Cell" rowHeight="86" id="m0d-ak-lc9" customClass="TLSwipeForOptionsCell">
<rect key="frame" x="0.0" y="86" width="320" height="86"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="287" height="43"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="m0d-ak-lc9" id="7eE-7d-xg2">
<rect key="frame" x="0.0" y="0.0" width="320" height="85"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" text="Title" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="2pz-XF-uhl">
<rect key="frame" x="15" y="0.0" width="270" height="43"/>
<autoresizingMask key="autoresizingMask"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="highlightedColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
</tableViewCellContentView>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<connections>
<segue destination="Ah7-4n-0Wa" kind="push" identifier="showDetail" id="jUr-3t-vfg"/>
</connections>
</tableViewCell>
</prototypes>
<sections/>
Expand All @@ -63,38 +50,6 @@
</objects>
<point key="canvasLocation" x="459" y="64"/>
</scene>
<!--class Prefix:identifier Detail View Controller - Detail-->
<scene sceneID="Cn3-H9-jdl">
<objects>
<viewController title="Detail" id="Ah7-4n-0Wa" customClass="TLDetailViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="MMQ-IT-qOo">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<label clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" text="Detail view content goes here" textAlignment="center" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="Lei-5M-9Gs">
<rect key="frame" x="20" y="276" width="280" height="17"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<fontDescription key="fontDescription" type="system" size="system"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="Lei-5M-9Gs" firstAttribute="leading" secondItem="MMQ-IT-qOo" secondAttribute="leading" constant="20" symbolic="YES" id="62x-JV-TTJ"/>
<constraint firstItem="Lei-5M-9Gs" firstAttribute="centerY" secondItem="MMQ-IT-qOo" secondAttribute="centerY" id="JzS-HC-Rnl"/>
<constraint firstAttribute="trailing" secondItem="Lei-5M-9Gs" secondAttribute="trailing" constant="20" symbolic="YES" id="pXB-RP-Zz6"/>
</constraints>
</view>
<navigationItem key="navigationItem" title="Detail" id="cra-N8-TIN"/>
<connections>
<outlet property="detailDescriptionLabel" destination="Lei-5M-9Gs" id="sCT-F7-F6f"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="lrm-kH-fPn" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="902" y="64"/>
</scene>
</scenes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
Expand Down

0 comments on commit 5501ef4

Please sign in to comment.