├── Pod ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── SCTableViewCellRowActionButton.h │ ├── SCTableViewCellRowActionButton.m │ ├── UIViewExt.h │ ├── SCTableViewCell.h │ ├── UIViewExt.m │ └── SCTableViewCell.m ├── _Pods.xcodeproj ├── Example ├── Tests │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── Tests-Info.plist ├── Pods │ ├── Headers │ │ └── Private │ │ │ └── SCTableViewCell │ │ │ ├── UIViewExt.h │ │ │ ├── SCTableViewCell.h │ │ │ └── SCTableViewCellRowActionButton.h │ ├── Target Support Files │ │ ├── SCTableViewCell │ │ │ ├── SCTableViewCell-prefix.pch │ │ │ ├── SCTableViewCell.modulemap │ │ │ ├── SCTableViewCell-dummy.m │ │ │ ├── SCTableViewCell.xcconfig │ │ │ ├── SCTableViewCell-umbrella.h │ │ │ └── Info.plist │ │ ├── Pods-SCTableViewCell_Tests │ │ │ ├── Pods-SCTableViewCell_Tests.modulemap │ │ │ ├── Pods-SCTableViewCell_Tests-dummy.m │ │ │ ├── Pods-SCTableViewCell_Tests-umbrella.h │ │ │ ├── Pods-SCTableViewCell_Tests.debug.xcconfig │ │ │ ├── Pods-SCTableViewCell_Tests.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-SCTableViewCell_Tests-acknowledgements.markdown │ │ │ ├── Pods-SCTableViewCell_Tests-acknowledgements.plist │ │ │ ├── Pods-SCTableViewCell_Tests-frameworks.sh │ │ │ └── Pods-SCTableViewCell_Tests-resources.sh │ │ └── Pods-SCTableViewCell_Example │ │ │ ├── Pods-SCTableViewCell_Example.modulemap │ │ │ ├── Pods-SCTableViewCell_Example-dummy.m │ │ │ ├── Pods-SCTableViewCell_Example-umbrella.h │ │ │ ├── Pods-SCTableViewCell_Example.debug.xcconfig │ │ │ ├── Pods-SCTableViewCell_Example.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-SCTableViewCell_Example-acknowledgements.markdown │ │ │ ├── Pods-SCTableViewCell_Example-acknowledgements.plist │ │ │ ├── Pods-SCTableViewCell_Example-frameworks.sh │ │ │ └── Pods-SCTableViewCell_Example-resources.sh │ ├── Manifest.lock │ ├── Local Podspecs │ │ └── SCTableViewCell.podspec.json │ └── Pods.xcodeproj │ │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── SCTableViewCell.xcscheme │ │ └── project.pbxproj ├── SCTableViewCell │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── SCTableViewController.h │ ├── SCAppDelegate.h │ ├── SCTableViewCell-Prefix.pch │ ├── main.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── SCTableViewCell-Info.plist │ ├── SCAppDelegate.m │ ├── Main.storyboard │ └── SCTableViewController.m ├── SCTableViewCell.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── SCTableViewCell-Example.xcscheme │ └── project.pbxproj ├── Podfile.lock ├── Podfile └── SCTableViewCell.xcworkspace │ └── contents.xcworkspacedata ├── Preview ├── intro_1.gif └── intro_2.gif ├── .travis.yml ├── .gitignore ├── LICENSE ├── SCTableViewCell.podspec └── README.md /Pod/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Pod/Classes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/SCTableViewCell/UIViewExt.h: -------------------------------------------------------------------------------- 1 | ../../../../../Pod/Classes/UIViewExt.h -------------------------------------------------------------------------------- /Example/SCTableViewCell/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Preview/intro_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergioChan/SCTableViewCell/HEAD/Preview/intro_1.gif -------------------------------------------------------------------------------- /Preview/intro_2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergioChan/SCTableViewCell/HEAD/Preview/intro_2.gif -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/SCTableViewCell/SCTableViewCell.h: -------------------------------------------------------------------------------- 1 | ../../../../../Pod/Classes/SCTableViewCell.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/SCTableViewCell/SCTableViewCellRowActionButton.h: -------------------------------------------------------------------------------- 1 | ../../../../../Pod/Classes/SCTableViewCellRowActionButton.h -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SCTableViewCell/SCTableViewCell-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SCTableViewCell/SCTableViewCell.modulemap: -------------------------------------------------------------------------------- 1 | framework module SCTableViewCell { 2 | umbrella header "SCTableViewCell-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SCTableViewCell/SCTableViewCell-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_SCTableViewCell : NSObject 3 | @end 4 | @implementation PodsDummy_SCTableViewCell 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SCTableViewCell_Tests { 2 | umbrella header "Pods-SCTableViewCell_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/SCTableViewCell.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SCTableViewCell_Example { 2 | umbrella header "Pods-SCTableViewCell_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SCTableViewCell_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SCTableViewCell_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SCTableViewCell_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SCTableViewCell_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_SCTableViewCell_TestsVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_SCTableViewCell_TestsVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_SCTableViewCell_ExampleVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_SCTableViewCell_ExampleVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SCTableViewCell/SCTableViewCell.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/SCTableViewCell" "${PODS_ROOT}/Headers/Public" 3 | PODS_ROOT = ${SRCROOT} 4 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SCTableViewCell (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - SCTableViewCell (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SCTableViewCell: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | SCTableViewCell: 37fd004874dd18350da34440e2a3fa42b1375321 13 | 14 | COCOAPODS: 0.39.0 15 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SCTableViewCell (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - SCTableViewCell (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SCTableViewCell: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | SCTableViewCell: 37fd004874dd18350da34440e2a3fa42b1375321 13 | 14 | COCOAPODS: 0.39.0 15 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | use_frameworks! 3 | 4 | target 'SCTableViewCell_Example', :exclusive => true do 5 | pod "SCTableViewCell", :path => "../" 6 | end 7 | 8 | target 'SCTableViewCell_Tests', :exclusive => true do 9 | pod "SCTableViewCell", :path => "../" 10 | 11 | 12 | end 13 | -------------------------------------------------------------------------------- /Example/SCTableViewCell.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/SCTableViewCell/SCTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SCTableViewController.h 3 | // SCTableView 4 | // 5 | // Created by chen Yuheng on 15/9/13. 6 | // Copyright (c) 2015年 chen Yuheng. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SCTableViewController : UITableViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SCTableViewCell/SCTableViewCell-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "SCTableViewCell.h" 4 | #import "SCTableViewCellRowActionButton.h" 5 | #import "UIViewExt.h" 6 | 7 | FOUNDATION_EXPORT double SCTableViewCellVersionNumber; 8 | FOUNDATION_EXPORT const unsigned char SCTableViewCellVersionString[]; 9 | 10 | -------------------------------------------------------------------------------- /Example/SCTableViewCell/SCAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // SCAppDelegate.h 3 | // SCTableViewCell 4 | // 5 | // Created by Sergio Chan on 12/20/2015. 6 | // Copyright (c) 2015 Sergio Chan. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface SCAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/SCTableViewCell/SCTableViewCell-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/SCTableViewCell/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SCTableViewCell 4 | // 5 | // Created by Sergio Chan on 12/20/2015. 6 | // Copyright (c) 2015 Sergio Chan. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "SCAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([SCAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 3 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/SCTableViewCell.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "SCTableViewCell" 5 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SCTableViewCell_Tests 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 3 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/SCTableViewCell.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "SCTableViewCell" 5 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SCTableViewCell_Tests 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 3 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/SCTableViewCell.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "SCTableViewCell" 5 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SCTableViewCell_Example 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 3 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/SCTableViewCell.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "SCTableViewCell" 5 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-SCTableViewCell_Example 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | script: 12 | - set -o pipefail && xcodebuild test -workspace Example/SCTableViewCell.xcworkspace -scheme SCTableViewCell-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty 13 | - pod lib lint 14 | -------------------------------------------------------------------------------- /Pod/Classes/SCTableViewCellRowActionButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // SCTableViewCellRowActionButton.h 3 | // SCTableView 4 | // 5 | // Created by chen Yuheng on 15/9/21. 6 | // Copyright (c) 2015年 chen Yuheng. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef void (^CommintActionBlock)(NSIndexPath *path); 12 | 13 | @interface SCTableViewCellRowActionButton : UIButton 14 | 15 | @property (nonatomic, copy) CommintActionBlock actionCallBack; 16 | 17 | - (id)initWithTitle:(NSString *)title color:(UIColor *)color withActionBlock:(CommintActionBlock)block; 18 | @end 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/SCTableViewCell.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SCTableViewCell", 3 | "version": "0.1.0", 4 | "summary": "Swipe-to-Delete Effects like iOS Native Mail App", 5 | "description": "Swipe-to-Delete Effects TableView Cell like iOS Native Mail App", 6 | "homepage": "https://github.com/SergioChan/SCTableViewCell", 7 | "license": "MIT", 8 | "authors": { 9 | "Sergio Chan": "yuheng9211@qq.com" 10 | }, 11 | "source": { 12 | "git": "https://github.com/SergioChan/SCTableViewCell.git", 13 | "tag": "0.1.0" 14 | }, 15 | "platforms": { 16 | "ios": "8.0" 17 | }, 18 | "requires_arc": true, 19 | "source_files": "Pod/Classes/**/*", 20 | "resource_bundles": { 21 | "SCTableViewCell": [ 22 | "Pod/Assets/*.png" 23 | ] 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // SCTableViewCellTests.m 3 | // SCTableViewCellTests 4 | // 5 | // Created by Sergio Chan on 12/20/2015. 6 | // Copyright (c) 2015 Sergio Chan. All rights reserved. 7 | // 8 | 9 | @import XCTest; 10 | 11 | @interface Tests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Tests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Pod/Classes/SCTableViewCellRowActionButton.m: -------------------------------------------------------------------------------- 1 | // 2 | // SCTableViewCellRowActionButton.m 3 | // SCTableView 4 | // 5 | // Created by chen Yuheng on 15/9/21. 6 | // Copyright (c) 2015年 chen Yuheng. All rights reserved. 7 | // 8 | 9 | #import "SCTableViewCellRowActionButton.h" 10 | 11 | @implementation SCTableViewCellRowActionButton 12 | 13 | - (id)initWithTitle:(NSString *)title color:(UIColor *)color withActionBlock:(CommintActionBlock)block 14 | { 15 | self = [super init]; 16 | if(self) 17 | { 18 | self.backgroundColor = color; 19 | [self setTitle:title forState:UIControlStateNormal]; 20 | self.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; 21 | self.contentEdgeInsets = UIEdgeInsetsMake(0,10,0,0); 22 | self.titleLabel.numberOfLines = 2; 23 | //self.titleLabel.font = [UIFont systemFontOfSize:12.0f]; 24 | self.actionCallBack = block; 25 | } 26 | return self; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SCTableViewCell/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/SCTableViewCell/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Pod/Classes/UIViewExt.h: -------------------------------------------------------------------------------- 1 | /* 2 | Erica Sadun, http://ericasadun.com 3 | iPhone Developer's Cookbook, 3.0 Edition 4 | BSD License, Use at your own risk 5 | */ 6 | 7 | #import 8 | 9 | CGPoint CGRectGetCenter(CGRect rect); 10 | CGRect CGRectMoveToCenter(CGRect rect, CGPoint center); 11 | 12 | #define ScreenWidth [[UIScreen mainScreen] bounds].size.width 13 | #define ScreenHeight [[UIScreen mainScreen] bounds].size.height 14 | 15 | @interface UIView (ViewFrameGeometry) 16 | @property CGPoint origin; 17 | @property CGSize size; 18 | 19 | @property (readonly) CGPoint bottomLeft; 20 | @property (readonly) CGPoint bottomRight; 21 | @property (readonly) CGPoint topRight; 22 | 23 | @property CGFloat height; 24 | @property CGFloat width; 25 | 26 | @property CGFloat top; 27 | @property CGFloat left; 28 | 29 | @property CGFloat bottom; 30 | @property CGFloat right; 31 | 32 | - (void) moveBy: (CGPoint) delta; 33 | - (void) scaleBy: (CGFloat) scaleFactor; 34 | - (void) fitInSize: (CGSize) aSize; 35 | 36 | - (UIImage *)convertViewToImage; 37 | @end -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Sergio Chan 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Example/SCTableViewCell/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## SCTableViewCell 5 | 6 | Copyright (c) 2015 Sergio Chan 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## SCTableViewCell 5 | 6 | Copyright (c) 2015 Sergio Chan 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/SCTableViewCell/SCTableViewCell-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | Main 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /SCTableViewCell.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint SCTableViewCell.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = "SCTableViewCell" 11 | s.version = "0.1.0" 12 | s.summary = "Swipe-to-Delete Effects like iOS Native Mail App" 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | s.description = "Swipe-to-Delete Effects TableView Cell like iOS Native Mail App" 20 | 21 | s.homepage = "https://github.com/SergioChan/SCTableViewCell" 22 | # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" 23 | s.license = 'MIT' 24 | s.author = { "Sergio Chan" => "yuheng9211@qq.com" } 25 | s.source = { :git => "https://github.com/SergioChan/SCTableViewCell.git", :tag => s.version.to_s } 26 | # s.social_media_url = 'https://twitter.com/' 27 | 28 | s.platform = :ios, '8.0' 29 | s.requires_arc = true 30 | 31 | s.source_files = 'Pod/Classes/**/*' 32 | s.resource_bundles = { 33 | 'SCTableViewCell' => ['Pod/Assets/*.png'] 34 | } 35 | 36 | # s.public_header_files = 'Pod/Classes/**/*.h' 37 | # s.frameworks = 'UIKit', 'MapKit' 38 | # s.dependency 'AFNetworking', '~> 2.3' 39 | end 40 | -------------------------------------------------------------------------------- /Example/SCTableViewCell/SCAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // SCAppDelegate.m 3 | // SCTableViewCell 4 | // 5 | // Created by Sergio Chan on 12/20/2015. 6 | // Copyright (c) 2015 Sergio Chan. All rights reserved. 7 | // 8 | 9 | #import "SCAppDelegate.h" 10 | 11 | @implementation SCAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2015 Sergio Chan <yuheng9211@qq.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | SCTableViewCell 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2015 Sergio Chan <yuheng9211@qq.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | SCTableViewCell 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/SCTableViewCell.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Pod/Classes/SCTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // SCTableViewCell.h 3 | // SCTableView 4 | // 5 | // Created by chen Yuheng on 15/9/13. 6 | // Copyright (c) 2015年 chen Yuheng. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "UIViewExt.h" 11 | #import 12 | #import "SCTableViewCellRowActionButton.h" 13 | 14 | typedef NS_ENUM(NSInteger, SCTableViewCellStyle) { 15 | SCTableViewCellStyleDefault = 0, // default table view cell style, just like UITableViewCell 16 | SCTableViewCellStyleRight, // table view cell with right button menu 17 | SCTableViewCellStyleLeft, // table view cell with left button menu 18 | SCTableViewCellStyleBoth // table view cell with both side button menu 19 | }; 20 | 21 | @class SCTableViewCell; 22 | @protocol SCTableViewCellDelegate 23 | 24 | @required 25 | /** 26 | * 获取每一行cell对应的编辑样式 27 | * 28 | * @param tableView 父级tableview 29 | * @param indexPath 索引 30 | * 31 | * @return 32 | */ 33 | - (SCTableViewCellStyle)SCTableView:(UITableView *)tableView editStyleForRowAtIndexPath:(NSIndexPath *)indexPath; 34 | 35 | /** 36 | * 获取每一行cell对应的按钮集合的委托方法,在layoutsubview的时候调用 37 | * 38 | * @param tableView 父级tableview 39 | * @param indexPath 索引 40 | * 41 | * @return SCTableViewCellRowActionButton的数组 42 | */ 43 | - (NSArray *)SCTableView:(UITableView *)tableView rightEditActionsForRowAtIndexPath:(NSIndexPath *)indexPath; 44 | - (NSArray *)SCTableView:(UITableView *)tableView leftEditActionsForRowAtIndexPath:(NSIndexPath *)indexPath; 45 | 46 | @end 47 | 48 | @interface SCTableViewCell : UITableViewCell 49 | 50 | /** 51 | * 滑动过程中的动画刷新间隔,减小这个值会加速滑动的动效,默认值是0.2s 52 | * Duration of dragging animation, set it lower to increase the speed of dragging, default is 0.2s 53 | */ 54 | @property (nonatomic) CGFloat dragAnimationDuration; 55 | 56 | /** 57 | * 重置动画的时长,设置的更大能够获得更好的用户体验,默认值是0.4s 58 | * Duration of reset animation of buttons, set it higher to get better user experience, default is 0.4s 59 | */ 60 | @property (nonatomic) CGFloat resetAnimationDuration; 61 | 62 | /** 63 | * 滑动的时候的加速度,这个可以放大你手指位移的距离,默认值是1.2,就可以和系统实现的效果差不多了 64 | * Acceleration when dragging, set higher to make movement wider, default is 1.2, which is similar to the effect of system implementation 65 | */ 66 | @property (nonatomic) CGFloat dragAcceleration; 67 | 68 | /** 69 | * 是否正在编辑状态 70 | * Bool variable indicated the state whether you are editing your cell or not 71 | */ 72 | @property (nonatomic) BOOL isEditing; 73 | 74 | @property (nonatomic, weak) id delegate; 75 | 76 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier inTableView:(UITableView *)tableView; 77 | 78 | + (void)endEditing; 79 | @end 80 | -------------------------------------------------------------------------------- /Example/SCTableViewCell/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "Pods-SCTableViewCell_Tests/SCTableViewCell.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "Pods-SCTableViewCell_Tests/SCTableViewCell.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "Pods-SCTableViewCell_Example/SCTableViewCell.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "Pods-SCTableViewCell_Example/SCTableViewCell.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/SCTableViewCell.xcodeproj/xcshareddata/xcschemes/SCTableViewCell-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 63 | 69 | 70 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | realpath() { 12 | DIRECTORY="$(cd "${1%/*}" && pwd)" 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 63 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 64 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 65 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 66 | fi 67 | rm -f "$RESOURCES_TO_COPY" 68 | 69 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 70 | then 71 | case "${TARGETED_DEVICE_FAMILY}" in 72 | 1,2) 73 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 74 | ;; 75 | 1) 76 | TARGET_DEVICE_ARGS="--target-device iphone" 77 | ;; 78 | 2) 79 | TARGET_DEVICE_ARGS="--target-device ipad" 80 | ;; 81 | *) 82 | TARGET_DEVICE_ARGS="--target-device mac" 83 | ;; 84 | esac 85 | 86 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 87 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 88 | while read line; do 89 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 90 | XCASSET_FILES+=("$line") 91 | fi 92 | done <<<"$OTHER_XCASSETS" 93 | 94 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 95 | fi 96 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | realpath() { 12 | DIRECTORY="$(cd "${1%/*}" && pwd)" 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 63 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 64 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 65 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 66 | fi 67 | rm -f "$RESOURCES_TO_COPY" 68 | 69 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 70 | then 71 | case "${TARGETED_DEVICE_FAMILY}" in 72 | 1,2) 73 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 74 | ;; 75 | 1) 76 | TARGET_DEVICE_ARGS="--target-device iphone" 77 | ;; 78 | 2) 79 | TARGET_DEVICE_ARGS="--target-device ipad" 80 | ;; 81 | *) 82 | TARGET_DEVICE_ARGS="--target-device mac" 83 | ;; 84 | esac 85 | 86 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 87 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 88 | while read line; do 89 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 90 | XCASSET_FILES+=("$line") 91 | fi 92 | done <<<"$OTHER_XCASSETS" 93 | 94 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 95 | fi 96 | -------------------------------------------------------------------------------- /Pod/Classes/UIViewExt.m: -------------------------------------------------------------------------------- 1 | /* 2 | Erica Sadun, http://ericasadun.com 3 | iPhone Developer's Cookbook, 3.0 Edition 4 | BSD License, Use at your own risk 5 | */ 6 | 7 | #import "UIViewExt.h" 8 | 9 | CGPoint CGRectGetCenter(CGRect rect) 10 | { 11 | CGPoint pt; 12 | pt.x = CGRectGetMidX(rect); 13 | pt.y = CGRectGetMidY(rect); 14 | return pt; 15 | } 16 | 17 | CGRect CGRectMoveToCenter(CGRect rect, CGPoint center) 18 | { 19 | CGRect newrect = CGRectZero; 20 | newrect.origin.x = center.x-CGRectGetMidX(rect); 21 | newrect.origin.y = center.y-CGRectGetMidY(rect); 22 | newrect.size = rect.size; 23 | return newrect; 24 | } 25 | 26 | @implementation UIView (ViewGeometry) 27 | 28 | // Retrieve and set the origin 29 | - (CGPoint) origin 30 | { 31 | return self.frame.origin; 32 | } 33 | 34 | - (void) setOrigin: (CGPoint) aPoint 35 | { 36 | CGRect newframe = self.frame; 37 | newframe.origin = aPoint; 38 | self.frame = newframe; 39 | } 40 | 41 | 42 | // Retrieve and set the size 43 | - (CGSize) size 44 | { 45 | return self.frame.size; 46 | } 47 | 48 | - (void) setSize: (CGSize) aSize 49 | { 50 | CGRect newframe = self.frame; 51 | newframe.size = aSize; 52 | self.frame = newframe; 53 | } 54 | 55 | // Query other frame locations 56 | - (CGPoint) bottomRight 57 | { 58 | CGFloat x = self.frame.origin.x + self.frame.size.width; 59 | CGFloat y = self.frame.origin.y + self.frame.size.height; 60 | return CGPointMake(x, y); 61 | } 62 | 63 | - (CGPoint) bottomLeft 64 | { 65 | CGFloat x = self.frame.origin.x; 66 | CGFloat y = self.frame.origin.y + self.frame.size.height; 67 | return CGPointMake(x, y); 68 | } 69 | 70 | - (CGPoint) topRight 71 | { 72 | CGFloat x = self.frame.origin.x + self.frame.size.width; 73 | CGFloat y = self.frame.origin.y; 74 | return CGPointMake(x, y); 75 | } 76 | 77 | 78 | // Retrieve and set height, width, top, bottom, left, right 79 | - (CGFloat) height 80 | { 81 | return self.frame.size.height; 82 | } 83 | 84 | - (void) setHeight: (CGFloat) newheight 85 | { 86 | CGRect newframe = self.frame; 87 | newframe.size.height = newheight; 88 | self.frame = newframe; 89 | } 90 | 91 | - (CGFloat) width 92 | { 93 | return self.frame.size.width; 94 | } 95 | 96 | - (void) setWidth: (CGFloat) newwidth 97 | { 98 | CGRect newframe = self.frame; 99 | newframe.size.width = newwidth; 100 | self.frame = newframe; 101 | } 102 | 103 | - (CGFloat) top 104 | { 105 | return self.frame.origin.y; 106 | } 107 | 108 | - (void) setTop: (CGFloat) newtop 109 | { 110 | CGRect newframe = self.frame; 111 | newframe.origin.y = newtop; 112 | self.frame = newframe; 113 | } 114 | 115 | - (CGFloat) left 116 | { 117 | return self.frame.origin.x; 118 | } 119 | 120 | - (void) setLeft: (CGFloat) newleft 121 | { 122 | CGRect newframe = self.frame; 123 | newframe.origin.x = newleft; 124 | self.frame = newframe; 125 | } 126 | 127 | - (CGFloat) bottom 128 | { 129 | return self.frame.origin.y + self.frame.size.height; 130 | } 131 | 132 | - (void) setBottom: (CGFloat) newbottom 133 | { 134 | CGRect newframe = self.frame; 135 | newframe.origin.y = newbottom - self.frame.size.height; 136 | self.frame = newframe; 137 | } 138 | 139 | - (CGFloat) right 140 | { 141 | return self.frame.origin.x + self.frame.size.width; 142 | } 143 | 144 | - (void) setRight: (CGFloat) newright 145 | { 146 | CGFloat delta = newright - (self.frame.origin.x + self.frame.size.width); 147 | CGRect newframe = self.frame; 148 | newframe.origin.x += delta ; 149 | self.frame = newframe; 150 | } 151 | 152 | // Move via offset 153 | - (void) moveBy: (CGPoint) delta 154 | { 155 | CGPoint newcenter = self.center; 156 | newcenter.x += delta.x; 157 | newcenter.y += delta.y; 158 | self.center = newcenter; 159 | } 160 | 161 | // Scaling 162 | - (void) scaleBy: (CGFloat) scaleFactor 163 | { 164 | CGRect newframe = self.frame; 165 | newframe.size.width *= scaleFactor; 166 | newframe.size.height *= scaleFactor; 167 | self.frame = newframe; 168 | } 169 | 170 | // Ensure that both dimensions fit within the given size by scaling down 171 | - (void) fitInSize: (CGSize) aSize 172 | { 173 | CGFloat scale; 174 | CGRect newframe = self.frame; 175 | 176 | if (newframe.size.height && (newframe.size.height > aSize.height)) 177 | { 178 | scale = aSize.height / newframe.size.height; 179 | newframe.size.width *= scale; 180 | newframe.size.height *= scale; 181 | } 182 | 183 | if (newframe.size.width && (newframe.size.width >= aSize.width)) 184 | { 185 | scale = aSize.width / newframe.size.width; 186 | newframe.size.width *= scale; 187 | newframe.size.height *= scale; 188 | } 189 | 190 | self.frame = newframe; 191 | } 192 | 193 | - (UIImage *)convertViewToImage 194 | { 195 | CGSize s = self.bounds.size; 196 | //下面方法,第一个参数表示区域大小。 197 | //第二个参数表示是否是非透明的。如果需要显示半透明效果,需要传NO,否则传YES。 198 | //第三个参数就是屏幕密度。 199 | 200 | UIGraphicsBeginImageContextWithOptions(s, NO, [UIScreen mainScreen].scale); 201 | [self.layer renderInContext:UIGraphicsGetCurrentContext()]; 202 | UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); 203 | UIGraphicsEndImageContext(); 204 | return image; 205 | } 206 | @end -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SCTableViewCell 2 | 3 | [![CI Status](http://img.shields.io/travis/Sergio Chan/SCTableViewCell.svg?style=flat)](https://travis-ci.org/Sergio Chan/SCTableViewCell) 4 | [![Version](https://img.shields.io/cocoapods/v/SCTableViewCell.svg?style=flat)](http://cocoapods.org/pods/SCTableViewCell) 5 | [![License](https://img.shields.io/cocoapods/l/SCTableViewCell.svg?style=flat)](http://cocoapods.org/pods/SCTableViewCell) 6 | [![Platform](https://img.shields.io/cocoapods/p/SCTableViewCell.svg?style=flat)](http://cocoapods.org/pods/SCTableViewCell) 7 | 8 | ## Usage 9 | 10 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 11 | 12 | ## 效果 Visual Effects 13 | 14 | 这是一个模仿iOS8中的邮箱里面的cell删除动效以及滑动右侧菜单按钮效果的开源库。 15 | 16 | This is a custom table view cell from iOS Native Mail App, including the special Swipe-to-Delete Effects and Swipe-to-Show menu. 17 | 18 | ![图片高能](https://raw.githubusercontent.com/SergioChan/SCTableViewCell/master/Preview/intro_1.gif) 19 | 20 | ![图片高能](https://raw.githubusercontent.com/SergioChan/SCTableViewCell/master/Preview/intro_2.gif) 21 | 22 | ## 说明 Introduction 23 | 由于iOS 8 提供了`- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath` 这个API,因此例如微信和QQ的滑动菜单都是用系统自带的效果实现的,这个实现出来的效果和邮箱的有一些不一样,除了按钮在出现的动画上的区别,还有删除的交互和动效。我也比较欣赏苹果自己设计的这套交互,使用起来十分的爽,因此尝试着模仿实现了一下。 24 | 25 | ## 使用 How to use 26 | 27 | 继承SCTableViewCell,根据和系统类似的委托方法来控制编辑菜单和事件。在你的TableView中初始化你的cell: 28 | 29 | ```Objective-C 30 | cell = [[SCTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"reuseIdentifier" inTableView:self.tableView withSCStyle:SCTableViewCellStyleRight]; 31 | cell.delegate = self; 32 | ``` 33 | 34 | 你需要在你的tableViewController中声明遵循`SCTableViewCellDelegate`,并且实现几个委托方法: 35 | 36 | ```Objective-C 37 | /** 38 | * 获取每一行cell对应的编辑样式 39 | * 40 | * @param tableView 父级tableview 41 | * @param indexPath 索引 42 | * 43 | * @return 44 | */ 45 | - (SCTableViewCellStyle)SCTableView:(UITableView *)tableView editStyleForRowAtIndexPath:(NSIndexPath *)indexPath; 46 | 47 | /** 48 | * 获取每一行cell对应的按钮集合的委托方法,在layoutsubview的时候调用 49 | * 50 | * @param tableView 父级tableview 51 | * @param indexPath 索引 52 | * 53 | * @return SCTableViewCellRowActionButton的数组 54 | */ 55 | - (NSArray *)SCTableView:(UITableView *)tableView rightEditActionsForRowAtIndexPath:(NSIndexPath *)indexPath; 56 | - (NSArray *)SCTableView:(UITableView *)tableView leftEditActionsForRowAtIndexPath:(NSIndexPath *)indexPath; 57 | 58 | /** 59 | * 每一行cell的动作触发回调 60 | * 61 | * @param tableView 父级tableview 62 | * @param index 动作index 63 | * @param indexPath 索引 64 | */ 65 | - (void)SCTableView:(UITableView *)tableView commitActionIndex:(NSInteger)index forIndexPath:(NSIndexPath *)indexPath; 66 | ``` 67 | 68 | 其中定义了四种cell的编辑样式: 69 | 70 | ```Objective-C 71 | typedef NS_ENUM(NSInteger, SCTableViewCellStyle) { 72 | SCTableViewCellStyleDefault = 0, // default table view cell style, just like UITableViewCell 73 | SCTableViewCellStyleRight, // table view cell with right button menu 74 | SCTableViewCellStyleLeft, // table view cell with left button menu 75 | SCTableViewCellStyleBoth // table view cell with both side button menu 76 | }; 77 | ``` 78 | ### 样式 Style 79 | **SCTableViewCellStyleDefault**是和其他的cell没有区别的cell,不会触发菜单的动画,你也可以自己定义cell上的手势操作,这个库不会做其他操作。**SCTableViewCellStyleRight**和**SCTableViewCellStyleLeft**就代表着只开放右侧或左侧滑动菜单,在邮箱中你也可以看到不管是左侧还是右侧你都能滑出一个自定义的菜单,如果你想要实现左右都能滑出菜单,则使用**SCTableViewCellStyleBoth**。 80 | 81 | > 目前只实现了`SCTableViewCellStyleRight`。(2015-09-21) 82 | 83 | 样式需要在 84 | `- (SCTableViewCellStyle)SCTableView:(UITableView *)tableView editStyleForRowAtIndexPath:(NSIndexPath *)indexPath;`这个委托方法中为每一行来指定。`SCTableViewCell`会在每次layout的时候调用这个委托来获取当前行的样式。 85 | 86 | ### 定义菜单结构 Custom your menu buttons 87 | 菜单的结构则是在`- (NSArray *)SCTableView:(UITableView *)tableView rightEditActionsForRowAtIndexPath:(NSIndexPath *)indexPath;`和`- (NSArray *)SCTableView:(UITableView *)tableView leftEditActionsForRowAtIndexPath:(NSIndexPath *)indexPath;`这两个委托方法中定义,现在是返回一个UIButton的数组即可,之后会做一个ActionButton的基类,名字叫做`SCTableViewCellRowActionButton`。具体定义方法可以参考demo。 88 | 89 | ### 操作的回调 Action Callback 90 | 获取菜单操作的委托方法是`- (void)SCTableView:(UITableView *)tableView commitActionIndex:(NSInteger)index forIndexPath:(NSIndexPath *)indexPath;`,滑动到底会触发`actions`中的最后一个`UIButton`的事件。记住你在定义菜单结构的时候,你数组中的button顺序就是在界面上呈现出来的顺序。 91 | 92 | ### 参数的调控 Available Variables 93 | 94 | ```Objective-C 95 | /** 96 | * 滑动过程中的动画刷新间隔,减小这个值会加速滑动的动效,默认值是0.2s 97 | * Duration of dragging animation, set it lower to increase the speed of dragging, default is 0.2s 98 | */ 99 | @property (nonatomic) CGFloat dragAnimationDuration; 100 | 101 | /** 102 | * 重置动画的时长,设置的更大能够获得更好的用户体验,默认值是0.4s 103 | * Duration of reset animation of buttons, set it higher to get better user experience, default is 0.4s 104 | */ 105 | @property (nonatomic) CGFloat resetAnimationDuration; 106 | 107 | /** 108 | * 滑动的时候的加速度,这个可以放大你手指位移的距离,默认值是1.2,就可以和系统实现的效果差不多了 109 | * Acceleration when dragging, set higher to make movement wider, default is 1.2, which is similar to the effect of system implementation 110 | */ 111 | @property (nonatomic) CGFloat dragAcceleration; 112 | ``` 113 | 114 | `dragAnimationDuration`其实就是移动的时候动画执行的速率,值越小你所看到的动画就越快。`resetAnimationDuration`是你在拖拽超过了应有范围(现在是屏幕宽度的一半)之后松开手指会执行复原动画以及你没有拖拽到足够位置松开手指之后复原到消失的动画长度,值越大用户看到的效果越平滑,当然不能太大……否则就不够流畅了。至于最后的`dragAcceleration`,这是一个加速度,它可以放大你的移动,合适值在我简单调试后设置的是1.2,在这个值上,在速率,位移等方面都和邮箱的原生效果更相近。 115 | 116 | ## Requirements 117 | 118 | ## Installation 119 | 120 | SCTableViewCell is available through [CocoaPods](http://cocoapods.org). To install 121 | it, simply add the following line to your Podfile: 122 | 123 | ```ruby 124 | pod "SCTableViewCell" 125 | ``` 126 | 127 | ## Author 128 | 129 | Sergio Chan, yuheng9211@qq.com 130 | 131 | ## License 132 | 133 | SCTableViewCell is available under the MIT license. See the LICENSE file for more info. 134 | -------------------------------------------------------------------------------- /Example/SCTableViewCell/SCTableViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SCTableViewController.m 3 | // SCTableView 4 | // 5 | // Created by chen Yuheng on 15/9/13. 6 | // Copyright (c) 2015年 chen Yuheng. All rights reserved. 7 | // 8 | 9 | #import "SCTableViewController.h" 10 | #import "SCTableViewCell.h" 11 | 12 | @interface SCTableViewController () 13 | @property (nonatomic, strong) NSMutableArray *data; 14 | @end 15 | 16 | @implementation SCTableViewController 17 | 18 | - (void)viewDidLoad { 19 | [super viewDidLoad]; 20 | self.title = @"SCTableViewCell"; 21 | NSDictionary * dict=[NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName]; 22 | self.navigationController.navigationBar.titleTextAttributes = dict; 23 | [self.navigationController.navigationBar setTranslucent:NO]; 24 | self.navigationController.navigationBar.barTintColor = [UIColor lightGrayColor]; 25 | [self hideExtraCellLine]; 26 | self.data = [NSMutableArray arrayWithObjects:@"右侧菜单1",@"右侧菜单2",@"右侧菜单3",@"右侧菜单4",@"右侧菜单5",@"左侧菜单6",@"左侧菜单7",@"左侧菜单8",@"左侧菜单9",@"左侧菜单10",nil]; 27 | self.view.backgroundColor = [UIColor lightGrayColor]; 28 | } 29 | 30 | - (void) hideExtraCellLine 31 | { 32 | UIView *view = [UIView new]; 33 | view.backgroundColor = [UIColor clearColor]; 34 | [self.tableView setTableFooterView:view]; 35 | } 36 | 37 | - (void)didReceiveMemoryWarning { 38 | [super didReceiveMemoryWarning]; 39 | // Dispose of any resources that can be recreated. 40 | } 41 | 42 | #pragma mark - Table view data source 43 | 44 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { 45 | return 1; 46 | } 47 | 48 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 49 | return self.data.count; 50 | } 51 | 52 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 53 | { 54 | return 80.0f; 55 | } 56 | 57 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 58 | SCTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"reuseIdentifier"]; 59 | if(!cell) 60 | { 61 | cell = [[SCTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"reuseIdentifier" inTableView:self.tableView]; 62 | cell.selectionStyle = UITableViewCellSelectionStyleNone; 63 | cell.delegate = self; 64 | } 65 | NSString *item = [self.data objectAtIndex:indexPath.row]; 66 | cell.textLabel.text = item; 67 | return cell; 68 | } 69 | 70 | #pragma mark - SCTableViewCell Delegate 71 | - (SCTableViewCellStyle)SCTableView:(UITableView *)tableView editStyleForRowAtIndexPath:(NSIndexPath *)indexPath 72 | { 73 | if(indexPath.row < 5) 74 | return SCTableViewCellStyleRight; 75 | else 76 | return SCTableViewCellStyleLeft; 77 | } 78 | 79 | - (NSArray *)SCTableView:(UITableView *)tableView leftEditActionsForRowAtIndexPath:(NSIndexPath *)indexPath 80 | { 81 | SCTableViewCellRowActionButton *actionButton_3 = [[SCTableViewCellRowActionButton alloc]initWithTitle:@"标记已读" color:[UIColor blueColor] withActionBlock:^(NSIndexPath *t_indexPath){ 82 | // 83 | }]; 84 | return @[actionButton_3]; 85 | } 86 | 87 | - (NSArray *)SCTableView:(UITableView *)tableView rightEditActionsForRowAtIndexPath:(NSIndexPath *)indexPath 88 | { 89 | SCTableViewCellRowActionButton *actionButton_1 = [[SCTableViewCellRowActionButton alloc]initWithTitle:@"更多" color:[UIColor lightGrayColor] withActionBlock:^(NSIndexPath *t_indexPath){ 90 | NSLog(@"More!"); 91 | }]; 92 | SCTableViewCellRowActionButton *actionButton_2 = [[SCTableViewCellRowActionButton alloc]initWithTitle:@"旗标" color:[UIColor orangeColor] withActionBlock:^(NSIndexPath *t_indexPath){ 93 | NSLog(@"Flag!"); 94 | }]; 95 | SCTableViewCellRowActionButton *actionButton_3 = [[SCTableViewCellRowActionButton alloc]initWithTitle:@"删除" color:[UIColor redColor] withActionBlock:^(NSIndexPath *t_indexPath){ 96 | [self.data removeObjectAtIndex:t_indexPath.row]; 97 | [self.tableView deleteRowsAtIndexPaths:@[t_indexPath] withRowAnimation:UITableViewRowAnimationTop]; 98 | }]; 99 | return @[actionButton_1,actionButton_2,actionButton_3]; 100 | } 101 | 102 | // Override to support conditional editing of the table view. 103 | - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { 104 | // Return NO if you do not want the specified item to be editable. 105 | return NO; 106 | } 107 | 108 | - (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath 109 | { 110 | return @""; 111 | } 112 | 113 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 114 | { 115 | NSLog(@"did select at %@",indexPath); 116 | } 117 | 118 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView 119 | { 120 | [self.tableView endEditing:YES]; 121 | [SCTableViewCell endEditing]; 122 | } 123 | /** 124 | * 这是系统的实现方式,无法做到邮箱的效果,但可以做到微信和QQ的左滑效果,iOS8以上才有 125 | * 126 | * @param NSArray 127 | * 128 | * @return 129 | */ 130 | //- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath 131 | //{ 132 | // UITableViewRowAction *test1 = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleNormal title:@"测试1" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) { 133 | // 134 | // }]; 135 | // test1.backgroundColor = [UIColor blueColor]; 136 | // 137 | // UITableViewRowAction *test2 = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"测试2" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) { 138 | // 139 | // }]; 140 | // test2.backgroundColor = [UIColor orangeColor]; 141 | // 142 | // UITableViewRowAction *test3 = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@"测试3" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) { 143 | // 144 | // }]; 145 | // test3.backgroundColor = [UIColor redColor]; 146 | // 147 | // return @[test1,test2,test3]; 148 | //} 149 | 150 | // Override to support editing the table view. 151 | - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { 152 | if (editingStyle == UITableViewCellEditingStyleDelete) { 153 | // Delete the row from the data source 154 | //[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; 155 | } else if (editingStyle == UITableViewCellEditingStyleInsert) { 156 | // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view 157 | } 158 | } 159 | 160 | /* 161 | // Override to support rearranging the table view. 162 | - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { 163 | } 164 | */ 165 | 166 | /* 167 | // Override to support conditional rearranging of the table view. 168 | - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { 169 | // Return NO if you do not want the item to be re-orderable. 170 | return YES; 171 | } 172 | */ 173 | 174 | /* 175 | #pragma mark - Navigation 176 | 177 | // In a storyboard-based application, you will often want to do a little preparation before navigation 178 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 179 | // Get the new view controller using [segue destinationViewController]. 180 | // Pass the selected object to the new view controller. 181 | } 182 | */ 183 | 184 | @end 185 | -------------------------------------------------------------------------------- /Example/SCTableViewCell.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 061A96CD8E779A526C00CCF5 /* Pods_SCTableViewCell_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A21B512C281D1AC64905FA6 /* Pods_SCTableViewCell_Example.framework */; }; 11 | 49CBF7FB8CDD37605CB1C243 /* Pods_SCTableViewCell_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 852EBAA08BDA822E8C4FB60C /* Pods_SCTableViewCell_Tests.framework */; }; 12 | 50ECE11D1C26BFDC00210D06 /* SCTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 50ECE11C1C26BFDC00210D06 /* SCTableViewController.m */; }; 13 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 14 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 15 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 16 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; 17 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; 18 | 6003F59E195388D20070C39A /* SCAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* SCAppDelegate.m */; }; 19 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; 20 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; 21 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 22 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 23 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; 24 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; 25 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 6003F582195388D10070C39A /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 6003F589195388D20070C39A; 34 | remoteInfo = SCTableViewCell; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 02E4514F1A25B11B3C2B0A7E /* Pods-SCTableViewCell_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SCTableViewCell_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example.release.xcconfig"; sourceTree = ""; }; 40 | 38509A290278F86E8615F197 /* SCTableViewCell.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SCTableViewCell.podspec; path = ../SCTableViewCell.podspec; sourceTree = ""; }; 41 | 50ECE11B1C26BFDC00210D06 /* SCTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SCTableViewController.h; sourceTree = ""; }; 42 | 50ECE11C1C26BFDC00210D06 /* SCTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SCTableViewController.m; sourceTree = ""; }; 43 | 6003F58A195388D20070C39A /* SCTableViewCell_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SCTableViewCell_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 45 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 46 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 47 | 6003F595195388D20070C39A /* SCTableViewCell-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SCTableViewCell-Info.plist"; sourceTree = ""; }; 48 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 49 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 50 | 6003F59B195388D20070C39A /* SCTableViewCell-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SCTableViewCell-Prefix.pch"; sourceTree = ""; }; 51 | 6003F59C195388D20070C39A /* SCAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SCAppDelegate.h; sourceTree = ""; }; 52 | 6003F59D195388D20070C39A /* SCAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SCAppDelegate.m; sourceTree = ""; }; 53 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 54 | 6003F5AE195388D20070C39A /* SCTableViewCell_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SCTableViewCell_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 56 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; 57 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 58 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; 59 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 60 | 6A21B512C281D1AC64905FA6 /* Pods_SCTableViewCell_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SCTableViewCell_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 6F5359764F8A28630B249A61 /* Pods-SCTableViewCell_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SCTableViewCell_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example.debug.xcconfig"; sourceTree = ""; }; 62 | 72B403A1AD8AECF7DAFE8B27 /* Pods-SCTableViewCell_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SCTableViewCell_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests.debug.xcconfig"; sourceTree = ""; }; 63 | 76461E147D79CC4266B795DB /* Pods-SCTableViewCell_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SCTableViewCell_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests.release.xcconfig"; sourceTree = ""; }; 64 | 852EBAA08BDA822E8C4FB60C /* Pods_SCTableViewCell_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SCTableViewCell_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 66 | C8C1EF91C321627C1E573BCB /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 67 | CFA104E114159B03A5FF4E78 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 68 | /* End PBXFileReference section */ 69 | 70 | /* Begin PBXFrameworksBuildPhase section */ 71 | 6003F587195388D20070C39A /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 76 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 77 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 78 | 061A96CD8E779A526C00CCF5 /* Pods_SCTableViewCell_Example.framework in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 6003F5AB195388D20070C39A /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 87 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 88 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, 89 | 49CBF7FB8CDD37605CB1C243 /* Pods_SCTableViewCell_Tests.framework in Frameworks */, 90 | ); 91 | runOnlyForDeploymentPostprocessing = 0; 92 | }; 93 | /* End PBXFrameworksBuildPhase section */ 94 | 95 | /* Begin PBXGroup section */ 96 | 6003F581195388D10070C39A = { 97 | isa = PBXGroup; 98 | children = ( 99 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 100 | 6003F593195388D20070C39A /* Example for SCTableViewCell */, 101 | 6003F5B5195388D20070C39A /* Tests */, 102 | 6003F58C195388D20070C39A /* Frameworks */, 103 | 6003F58B195388D20070C39A /* Products */, 104 | CFE4B511C634BC382F30B265 /* Pods */, 105 | ); 106 | sourceTree = ""; 107 | }; 108 | 6003F58B195388D20070C39A /* Products */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 6003F58A195388D20070C39A /* SCTableViewCell_Example.app */, 112 | 6003F5AE195388D20070C39A /* SCTableViewCell_Tests.xctest */, 113 | ); 114 | name = Products; 115 | sourceTree = ""; 116 | }; 117 | 6003F58C195388D20070C39A /* Frameworks */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 6003F58D195388D20070C39A /* Foundation.framework */, 121 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 122 | 6003F591195388D20070C39A /* UIKit.framework */, 123 | 6003F5AF195388D20070C39A /* XCTest.framework */, 124 | 6A21B512C281D1AC64905FA6 /* Pods_SCTableViewCell_Example.framework */, 125 | 852EBAA08BDA822E8C4FB60C /* Pods_SCTableViewCell_Tests.framework */, 126 | ); 127 | name = Frameworks; 128 | sourceTree = ""; 129 | }; 130 | 6003F593195388D20070C39A /* Example for SCTableViewCell */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 50ECE11B1C26BFDC00210D06 /* SCTableViewController.h */, 134 | 50ECE11C1C26BFDC00210D06 /* SCTableViewController.m */, 135 | 6003F59C195388D20070C39A /* SCAppDelegate.h */, 136 | 6003F59D195388D20070C39A /* SCAppDelegate.m */, 137 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, 138 | 6003F5A8195388D20070C39A /* Images.xcassets */, 139 | 6003F594195388D20070C39A /* Supporting Files */, 140 | ); 141 | name = "Example for SCTableViewCell"; 142 | path = SCTableViewCell; 143 | sourceTree = ""; 144 | }; 145 | 6003F594195388D20070C39A /* Supporting Files */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | 6003F595195388D20070C39A /* SCTableViewCell-Info.plist */, 149 | 6003F596195388D20070C39A /* InfoPlist.strings */, 150 | 6003F599195388D20070C39A /* main.m */, 151 | 6003F59B195388D20070C39A /* SCTableViewCell-Prefix.pch */, 152 | ); 153 | name = "Supporting Files"; 154 | sourceTree = ""; 155 | }; 156 | 6003F5B5195388D20070C39A /* Tests */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 6003F5BB195388D20070C39A /* Tests.m */, 160 | 6003F5B6195388D20070C39A /* Supporting Files */, 161 | ); 162 | path = Tests; 163 | sourceTree = ""; 164 | }; 165 | 6003F5B6195388D20070C39A /* Supporting Files */ = { 166 | isa = PBXGroup; 167 | children = ( 168 | 6003F5B7195388D20070C39A /* Tests-Info.plist */, 169 | 6003F5B8195388D20070C39A /* InfoPlist.strings */, 170 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, 171 | ); 172 | name = "Supporting Files"; 173 | sourceTree = ""; 174 | }; 175 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | 38509A290278F86E8615F197 /* SCTableViewCell.podspec */, 179 | CFA104E114159B03A5FF4E78 /* README.md */, 180 | C8C1EF91C321627C1E573BCB /* LICENSE */, 181 | ); 182 | name = "Podspec Metadata"; 183 | sourceTree = ""; 184 | }; 185 | CFE4B511C634BC382F30B265 /* Pods */ = { 186 | isa = PBXGroup; 187 | children = ( 188 | 6F5359764F8A28630B249A61 /* Pods-SCTableViewCell_Example.debug.xcconfig */, 189 | 02E4514F1A25B11B3C2B0A7E /* Pods-SCTableViewCell_Example.release.xcconfig */, 190 | 72B403A1AD8AECF7DAFE8B27 /* Pods-SCTableViewCell_Tests.debug.xcconfig */, 191 | 76461E147D79CC4266B795DB /* Pods-SCTableViewCell_Tests.release.xcconfig */, 192 | ); 193 | name = Pods; 194 | sourceTree = ""; 195 | }; 196 | /* End PBXGroup section */ 197 | 198 | /* Begin PBXNativeTarget section */ 199 | 6003F589195388D20070C39A /* SCTableViewCell_Example */ = { 200 | isa = PBXNativeTarget; 201 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "SCTableViewCell_Example" */; 202 | buildPhases = ( 203 | EEE5089A2BA034C48FDFCCDB /* Check Pods Manifest.lock */, 204 | 6003F586195388D20070C39A /* Sources */, 205 | 6003F587195388D20070C39A /* Frameworks */, 206 | 6003F588195388D20070C39A /* Resources */, 207 | BFF9B444CD2A2F2078C75EBC /* Embed Pods Frameworks */, 208 | 469D90DB8E2C8EE443F4915B /* Copy Pods Resources */, 209 | ); 210 | buildRules = ( 211 | ); 212 | dependencies = ( 213 | ); 214 | name = SCTableViewCell_Example; 215 | productName = SCTableViewCell; 216 | productReference = 6003F58A195388D20070C39A /* SCTableViewCell_Example.app */; 217 | productType = "com.apple.product-type.application"; 218 | }; 219 | 6003F5AD195388D20070C39A /* SCTableViewCell_Tests */ = { 220 | isa = PBXNativeTarget; 221 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "SCTableViewCell_Tests" */; 222 | buildPhases = ( 223 | B9FF836C69A461AFFD63C67E /* Check Pods Manifest.lock */, 224 | 6003F5AA195388D20070C39A /* Sources */, 225 | 6003F5AB195388D20070C39A /* Frameworks */, 226 | 6003F5AC195388D20070C39A /* Resources */, 227 | 0FC04FAE6E6D91C5EDAD480C /* Embed Pods Frameworks */, 228 | 2195A61E8E1C57DEDD5508B1 /* Copy Pods Resources */, 229 | ); 230 | buildRules = ( 231 | ); 232 | dependencies = ( 233 | 6003F5B4195388D20070C39A /* PBXTargetDependency */, 234 | ); 235 | name = SCTableViewCell_Tests; 236 | productName = SCTableViewCellTests; 237 | productReference = 6003F5AE195388D20070C39A /* SCTableViewCell_Tests.xctest */; 238 | productType = "com.apple.product-type.bundle.unit-test"; 239 | }; 240 | /* End PBXNativeTarget section */ 241 | 242 | /* Begin PBXProject section */ 243 | 6003F582195388D10070C39A /* Project object */ = { 244 | isa = PBXProject; 245 | attributes = { 246 | CLASSPREFIX = SC; 247 | LastUpgradeCheck = 0510; 248 | ORGANIZATIONNAME = "Sergio Chan"; 249 | TargetAttributes = { 250 | 6003F5AD195388D20070C39A = { 251 | TestTargetID = 6003F589195388D20070C39A; 252 | }; 253 | }; 254 | }; 255 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "SCTableViewCell" */; 256 | compatibilityVersion = "Xcode 3.2"; 257 | developmentRegion = English; 258 | hasScannedForEncodings = 0; 259 | knownRegions = ( 260 | en, 261 | Base, 262 | ); 263 | mainGroup = 6003F581195388D10070C39A; 264 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 265 | projectDirPath = ""; 266 | projectRoot = ""; 267 | targets = ( 268 | 6003F589195388D20070C39A /* SCTableViewCell_Example */, 269 | 6003F5AD195388D20070C39A /* SCTableViewCell_Tests */, 270 | ); 271 | }; 272 | /* End PBXProject section */ 273 | 274 | /* Begin PBXResourcesBuildPhase section */ 275 | 6003F588195388D20070C39A /* Resources */ = { 276 | isa = PBXResourcesBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, 280 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, 281 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | }; 285 | 6003F5AC195388D20070C39A /* Resources */ = { 286 | isa = PBXResourcesBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | /* End PBXResourcesBuildPhase section */ 294 | 295 | /* Begin PBXShellScriptBuildPhase section */ 296 | 0FC04FAE6E6D91C5EDAD480C /* Embed Pods Frameworks */ = { 297 | isa = PBXShellScriptBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | ); 301 | inputPaths = ( 302 | ); 303 | name = "Embed Pods Frameworks"; 304 | outputPaths = ( 305 | ); 306 | runOnlyForDeploymentPostprocessing = 0; 307 | shellPath = /bin/sh; 308 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests-frameworks.sh\"\n"; 309 | showEnvVarsInLog = 0; 310 | }; 311 | 2195A61E8E1C57DEDD5508B1 /* Copy Pods Resources */ = { 312 | isa = PBXShellScriptBuildPhase; 313 | buildActionMask = 2147483647; 314 | files = ( 315 | ); 316 | inputPaths = ( 317 | ); 318 | name = "Copy Pods Resources"; 319 | outputPaths = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | shellPath = /bin/sh; 323 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests-resources.sh\"\n"; 324 | showEnvVarsInLog = 0; 325 | }; 326 | 469D90DB8E2C8EE443F4915B /* Copy Pods Resources */ = { 327 | isa = PBXShellScriptBuildPhase; 328 | buildActionMask = 2147483647; 329 | files = ( 330 | ); 331 | inputPaths = ( 332 | ); 333 | name = "Copy Pods Resources"; 334 | outputPaths = ( 335 | ); 336 | runOnlyForDeploymentPostprocessing = 0; 337 | shellPath = /bin/sh; 338 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example-resources.sh\"\n"; 339 | showEnvVarsInLog = 0; 340 | }; 341 | B9FF836C69A461AFFD63C67E /* Check Pods Manifest.lock */ = { 342 | isa = PBXShellScriptBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | ); 346 | inputPaths = ( 347 | ); 348 | name = "Check Pods Manifest.lock"; 349 | outputPaths = ( 350 | ); 351 | runOnlyForDeploymentPostprocessing = 0; 352 | shellPath = /bin/sh; 353 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 354 | showEnvVarsInLog = 0; 355 | }; 356 | BFF9B444CD2A2F2078C75EBC /* Embed Pods Frameworks */ = { 357 | isa = PBXShellScriptBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | ); 361 | inputPaths = ( 362 | ); 363 | name = "Embed Pods Frameworks"; 364 | outputPaths = ( 365 | ); 366 | runOnlyForDeploymentPostprocessing = 0; 367 | shellPath = /bin/sh; 368 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example-frameworks.sh\"\n"; 369 | showEnvVarsInLog = 0; 370 | }; 371 | EEE5089A2BA034C48FDFCCDB /* Check Pods Manifest.lock */ = { 372 | isa = PBXShellScriptBuildPhase; 373 | buildActionMask = 2147483647; 374 | files = ( 375 | ); 376 | inputPaths = ( 377 | ); 378 | name = "Check Pods Manifest.lock"; 379 | outputPaths = ( 380 | ); 381 | runOnlyForDeploymentPostprocessing = 0; 382 | shellPath = /bin/sh; 383 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 384 | showEnvVarsInLog = 0; 385 | }; 386 | /* End PBXShellScriptBuildPhase section */ 387 | 388 | /* Begin PBXSourcesBuildPhase section */ 389 | 6003F586195388D20070C39A /* Sources */ = { 390 | isa = PBXSourcesBuildPhase; 391 | buildActionMask = 2147483647; 392 | files = ( 393 | 6003F59E195388D20070C39A /* SCAppDelegate.m in Sources */, 394 | 6003F59A195388D20070C39A /* main.m in Sources */, 395 | 50ECE11D1C26BFDC00210D06 /* SCTableViewController.m in Sources */, 396 | ); 397 | runOnlyForDeploymentPostprocessing = 0; 398 | }; 399 | 6003F5AA195388D20070C39A /* Sources */ = { 400 | isa = PBXSourcesBuildPhase; 401 | buildActionMask = 2147483647; 402 | files = ( 403 | 6003F5BC195388D20070C39A /* Tests.m in Sources */, 404 | ); 405 | runOnlyForDeploymentPostprocessing = 0; 406 | }; 407 | /* End PBXSourcesBuildPhase section */ 408 | 409 | /* Begin PBXTargetDependency section */ 410 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { 411 | isa = PBXTargetDependency; 412 | target = 6003F589195388D20070C39A /* SCTableViewCell_Example */; 413 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; 414 | }; 415 | /* End PBXTargetDependency section */ 416 | 417 | /* Begin PBXVariantGroup section */ 418 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 419 | isa = PBXVariantGroup; 420 | children = ( 421 | 6003F597195388D20070C39A /* en */, 422 | ); 423 | name = InfoPlist.strings; 424 | sourceTree = ""; 425 | }; 426 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { 427 | isa = PBXVariantGroup; 428 | children = ( 429 | 6003F5B9195388D20070C39A /* en */, 430 | ); 431 | name = InfoPlist.strings; 432 | sourceTree = ""; 433 | }; 434 | /* End PBXVariantGroup section */ 435 | 436 | /* Begin XCBuildConfiguration section */ 437 | 6003F5BD195388D20070C39A /* Debug */ = { 438 | isa = XCBuildConfiguration; 439 | buildSettings = { 440 | ALWAYS_SEARCH_USER_PATHS = NO; 441 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 442 | CLANG_CXX_LIBRARY = "libc++"; 443 | CLANG_ENABLE_MODULES = YES; 444 | CLANG_ENABLE_OBJC_ARC = YES; 445 | CLANG_WARN_BOOL_CONVERSION = YES; 446 | CLANG_WARN_CONSTANT_CONVERSION = YES; 447 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 448 | CLANG_WARN_EMPTY_BODY = YES; 449 | CLANG_WARN_ENUM_CONVERSION = YES; 450 | CLANG_WARN_INT_CONVERSION = YES; 451 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 452 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 453 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 454 | COPY_PHASE_STRIP = NO; 455 | GCC_C_LANGUAGE_STANDARD = gnu99; 456 | GCC_DYNAMIC_NO_PIC = NO; 457 | GCC_OPTIMIZATION_LEVEL = 0; 458 | GCC_PREPROCESSOR_DEFINITIONS = ( 459 | "DEBUG=1", 460 | "$(inherited)", 461 | ); 462 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 463 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 464 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 465 | GCC_WARN_UNDECLARED_SELECTOR = YES; 466 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 467 | GCC_WARN_UNUSED_FUNCTION = YES; 468 | GCC_WARN_UNUSED_VARIABLE = YES; 469 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 470 | ONLY_ACTIVE_ARCH = YES; 471 | SDKROOT = iphoneos; 472 | TARGETED_DEVICE_FAMILY = "1,2"; 473 | }; 474 | name = Debug; 475 | }; 476 | 6003F5BE195388D20070C39A /* Release */ = { 477 | isa = XCBuildConfiguration; 478 | buildSettings = { 479 | ALWAYS_SEARCH_USER_PATHS = NO; 480 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 481 | CLANG_CXX_LIBRARY = "libc++"; 482 | CLANG_ENABLE_MODULES = YES; 483 | CLANG_ENABLE_OBJC_ARC = YES; 484 | CLANG_WARN_BOOL_CONVERSION = YES; 485 | CLANG_WARN_CONSTANT_CONVERSION = YES; 486 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 487 | CLANG_WARN_EMPTY_BODY = YES; 488 | CLANG_WARN_ENUM_CONVERSION = YES; 489 | CLANG_WARN_INT_CONVERSION = YES; 490 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 491 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 492 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 493 | COPY_PHASE_STRIP = YES; 494 | ENABLE_NS_ASSERTIONS = NO; 495 | GCC_C_LANGUAGE_STANDARD = gnu99; 496 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 497 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 498 | GCC_WARN_UNDECLARED_SELECTOR = YES; 499 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 500 | GCC_WARN_UNUSED_FUNCTION = YES; 501 | GCC_WARN_UNUSED_VARIABLE = YES; 502 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 503 | SDKROOT = iphoneos; 504 | TARGETED_DEVICE_FAMILY = "1,2"; 505 | VALIDATE_PRODUCT = YES; 506 | }; 507 | name = Release; 508 | }; 509 | 6003F5C0195388D20070C39A /* Debug */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = 6F5359764F8A28630B249A61 /* Pods-SCTableViewCell_Example.debug.xcconfig */; 512 | buildSettings = { 513 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 514 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 515 | GCC_PREFIX_HEADER = "SCTableViewCell/SCTableViewCell-Prefix.pch"; 516 | INFOPLIST_FILE = "SCTableViewCell/SCTableViewCell-Info.plist"; 517 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 518 | MODULE_NAME = ExampleApp; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | TARGETED_DEVICE_FAMILY = 1; 521 | WRAPPER_EXTENSION = app; 522 | }; 523 | name = Debug; 524 | }; 525 | 6003F5C1195388D20070C39A /* Release */ = { 526 | isa = XCBuildConfiguration; 527 | baseConfigurationReference = 02E4514F1A25B11B3C2B0A7E /* Pods-SCTableViewCell_Example.release.xcconfig */; 528 | buildSettings = { 529 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 530 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 531 | GCC_PREFIX_HEADER = "SCTableViewCell/SCTableViewCell-Prefix.pch"; 532 | INFOPLIST_FILE = "SCTableViewCell/SCTableViewCell-Info.plist"; 533 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 534 | MODULE_NAME = ExampleApp; 535 | PRODUCT_NAME = "$(TARGET_NAME)"; 536 | TARGETED_DEVICE_FAMILY = 1; 537 | WRAPPER_EXTENSION = app; 538 | }; 539 | name = Release; 540 | }; 541 | 6003F5C3195388D20070C39A /* Debug */ = { 542 | isa = XCBuildConfiguration; 543 | baseConfigurationReference = 72B403A1AD8AECF7DAFE8B27 /* Pods-SCTableViewCell_Tests.debug.xcconfig */; 544 | buildSettings = { 545 | BUNDLE_LOADER = "$(TEST_HOST)"; 546 | FRAMEWORK_SEARCH_PATHS = ( 547 | "$(SDKROOT)/Developer/Library/Frameworks", 548 | "$(inherited)", 549 | "$(DEVELOPER_FRAMEWORKS_DIR)", 550 | ); 551 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 552 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 553 | GCC_PREPROCESSOR_DEFINITIONS = ( 554 | "DEBUG=1", 555 | "$(inherited)", 556 | ); 557 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 558 | PRODUCT_NAME = "$(TARGET_NAME)"; 559 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SCTableViewCell_Example.app/SCTableViewCell_Example"; 560 | WRAPPER_EXTENSION = xctest; 561 | }; 562 | name = Debug; 563 | }; 564 | 6003F5C4195388D20070C39A /* Release */ = { 565 | isa = XCBuildConfiguration; 566 | baseConfigurationReference = 76461E147D79CC4266B795DB /* Pods-SCTableViewCell_Tests.release.xcconfig */; 567 | buildSettings = { 568 | BUNDLE_LOADER = "$(TEST_HOST)"; 569 | FRAMEWORK_SEARCH_PATHS = ( 570 | "$(SDKROOT)/Developer/Library/Frameworks", 571 | "$(inherited)", 572 | "$(DEVELOPER_FRAMEWORKS_DIR)", 573 | ); 574 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 575 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 576 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 577 | PRODUCT_NAME = "$(TARGET_NAME)"; 578 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SCTableViewCell_Example.app/SCTableViewCell_Example"; 579 | WRAPPER_EXTENSION = xctest; 580 | }; 581 | name = Release; 582 | }; 583 | /* End XCBuildConfiguration section */ 584 | 585 | /* Begin XCConfigurationList section */ 586 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "SCTableViewCell" */ = { 587 | isa = XCConfigurationList; 588 | buildConfigurations = ( 589 | 6003F5BD195388D20070C39A /* Debug */, 590 | 6003F5BE195388D20070C39A /* Release */, 591 | ); 592 | defaultConfigurationIsVisible = 0; 593 | defaultConfigurationName = Release; 594 | }; 595 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "SCTableViewCell_Example" */ = { 596 | isa = XCConfigurationList; 597 | buildConfigurations = ( 598 | 6003F5C0195388D20070C39A /* Debug */, 599 | 6003F5C1195388D20070C39A /* Release */, 600 | ); 601 | defaultConfigurationIsVisible = 0; 602 | defaultConfigurationName = Release; 603 | }; 604 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "SCTableViewCell_Tests" */ = { 605 | isa = XCConfigurationList; 606 | buildConfigurations = ( 607 | 6003F5C3195388D20070C39A /* Debug */, 608 | 6003F5C4195388D20070C39A /* Release */, 609 | ); 610 | defaultConfigurationIsVisible = 0; 611 | defaultConfigurationName = Release; 612 | }; 613 | /* End XCConfigurationList section */ 614 | }; 615 | rootObject = 6003F582195388D10070C39A /* Project object */; 616 | } 617 | -------------------------------------------------------------------------------- /Pod/Classes/SCTableViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // SCTableViewCell.m 3 | // SCTableView 4 | // 5 | // Created by chen Yuheng on 15/9/13. 6 | // Copyright (c) 2015年 chen Yuheng. All rights reserved. 7 | // 8 | 9 | #import "SCTableViewCell.h" 10 | 11 | #define INDEX_X_FOR_DELETING 50.0f 12 | #define SCNotificationExitEditing @"SCNotificationExitEditing" 13 | 14 | @interface SCTableViewCell() 15 | { 16 | BOOL _isMoving; 17 | BOOL _hasMoved; 18 | } 19 | @property (nonatomic) SCTableViewCellStyle style; 20 | 21 | @property (nonatomic, strong) NSMutableArray *rightActionButtons; 22 | @property (nonatomic, strong) NSMutableArray *leftActionButtons; 23 | 24 | @property (nonatomic) CGFloat touchBeganPointX; 25 | @property (nonatomic) CGFloat buttonWidth; 26 | 27 | @property (nonatomic, strong) UITableView *tableView; 28 | @property (nonatomic, strong) NSIndexPath *indexPath; 29 | @end 30 | 31 | @implementation SCTableViewCell 32 | 33 | /** 34 | * 滑动的时候取消所有cell的编辑状态 35 | */ 36 | + (void)endEditing 37 | { 38 | [[NSNotificationCenter defaultCenter] postNotificationName:SCNotificationExitEditing object:nil userInfo:nil]; 39 | } 40 | 41 | - (void)awakeFromNib { 42 | // Initialization code 43 | } 44 | 45 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier inTableView:(UITableView *)tableView 46 | { 47 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; 48 | if(self) 49 | { 50 | self.contentView.backgroundColor = [UIColor whiteColor]; 51 | self.touchBeganPointX = 0.0f; 52 | self.dragAnimationDuration = 0.2f; 53 | self.resetAnimationDuration = 0.4f; 54 | self.buttonWidth = ScreenWidth / 6.0f; 55 | self.dragAcceleration = 1.14f; 56 | self.isEditing = NO; 57 | self.tableView = tableView; 58 | _isMoving = NO; 59 | _hasMoved = NO; 60 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(ExitEditing:) name:SCNotificationExitEditing object:nil]; 61 | assert([self.tableView isKindOfClass:[UITableView class]]); 62 | } 63 | return self; 64 | } 65 | 66 | - (void)layoutSubviews 67 | { 68 | if(_isMoving) 69 | { 70 | return; 71 | } 72 | [super layoutSubviews]; 73 | [self getSCStyle]; 74 | [self getActionsArray]; 75 | } 76 | 77 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated 78 | { 79 | [super setSelected:selected animated:animated]; 80 | } 81 | 82 | /** 83 | * 接收到别的cell的通知来取消自己的编辑状态 84 | * 85 | * @param sender NSNotification 86 | */ 87 | - (void)ExitEditing:(id)sender 88 | { 89 | if([(NSNotification *)sender object] != self) 90 | { 91 | if(self.isEditing && !_isMoving) 92 | { 93 | [self resetButtonsToOriginPosition]; 94 | } 95 | } 96 | } 97 | 98 | - (void) dealloc 99 | { 100 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 101 | } 102 | 103 | #pragma mark - Button Actions 104 | - (void)rightButtonPressed:(id)sender 105 | { 106 | SCTableViewCellRowActionButton *btn = (SCTableViewCellRowActionButton *)sender; 107 | [self actionTrigger:YES button:btn]; 108 | } 109 | 110 | - (void)leftButtonPressed:(id)sender 111 | { 112 | SCTableViewCellRowActionButton *btn = (SCTableViewCellRowActionButton *)sender; 113 | [self actionTrigger:NO button:btn]; 114 | } 115 | 116 | /** 117 | * 触发事件的最终汇总出口 118 | * 119 | * @param isRight 是否是右边滑动菜单 120 | */ 121 | - (void)actionTrigger:(BOOL)isRight button:(SCTableViewCellRowActionButton *)btn 122 | { 123 | self.indexPath = [self.tableView indexPathForCell:self]; 124 | 125 | if(isRight) 126 | { 127 | // 判断index是否是最后一个 128 | if(btn.actionCallBack) 129 | { 130 | btn.actionCallBack(self.indexPath); 131 | } 132 | } 133 | else 134 | { 135 | if(btn.actionCallBack) 136 | { 137 | btn.actionCallBack(self.indexPath); 138 | } 139 | [self resetButtonsToOriginPosition]; 140 | } 141 | } 142 | 143 | #pragma mark - Main Touch processer 144 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 145 | { 146 | if(touches.count == 1) 147 | { 148 | for(UITouch *touch in touches) 149 | { 150 | if(touch.phase != UITouchPhaseBegan) 151 | { 152 | return; 153 | } 154 | else 155 | { 156 | NSLog(@"begin!"); 157 | switch (self.style) { 158 | case SCTableViewCellStyleRight: 159 | { 160 | if(self.contentView.left == 0.0f) 161 | { 162 | self.touchBeganPointX = [touch locationInView:self.tableView].x; 163 | //当开始编辑的时候,向其他cell发送取消编辑的通知 164 | [[NSNotificationCenter defaultCenter] postNotificationName:SCNotificationExitEditing object:self userInfo:nil]; 165 | } 166 | _isMoving = YES; 167 | } 168 | break; 169 | case SCTableViewCellStyleLeft: 170 | { 171 | if(self.contentView.left == 0.0f) 172 | { 173 | self.touchBeganPointX = [touch locationInView:self.tableView].x; 174 | //当开始编辑的时候,向其他cell发送取消编辑的通知 175 | [[NSNotificationCenter defaultCenter] postNotificationName:SCNotificationExitEditing object:self userInfo:nil]; 176 | } 177 | _isMoving = YES; 178 | } 179 | break; 180 | case SCTableViewCellStyleBoth: 181 | { 182 | 183 | } 184 | break; 185 | case SCTableViewCellStyleDefault: 186 | { 187 | [super touchesBegan:touches withEvent:event]; 188 | } 189 | break; 190 | default: 191 | break; 192 | } 193 | } 194 | } 195 | } 196 | else 197 | { 198 | [super touchesBegan:touches withEvent:event]; 199 | return; 200 | } 201 | } 202 | 203 | - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event 204 | { 205 | if(touches.count == 1) 206 | { 207 | for(UITouch *touch in touches) 208 | { 209 | if(touch.phase == UITouchPhaseEnded || touch.phase == UITouchPhaseCancelled) 210 | { 211 | self.tableView.scrollEnabled = YES; 212 | [super touchesMoved:touches withEvent:event]; 213 | return; 214 | } 215 | else if(touch.phase == UITouchPhaseMoved) 216 | { 217 | self.tableView.scrollEnabled = NO; 218 | switch (self.style) { 219 | case SCTableViewCellStyleRight: 220 | { 221 | _hasMoved = YES; 222 | _isEditing = YES; 223 | CGFloat CurrentXIndex = [touch locationInView:self.tableView].x; 224 | CGFloat CurrentYIndex = [touch locationInView:self.tableView].y; 225 | NSLog(@"--- (%f,%f) --- %f",CurrentXIndex,CurrentYIndex,self.touchBeganPointX - CurrentXIndex); 226 | CGFloat delta = (self.touchBeganPointX - CurrentXIndex) * self.dragAcceleration; 227 | [self rightMenuAnimation:delta andCurrentIndexX:CurrentXIndex]; 228 | } 229 | break; 230 | case SCTableViewCellStyleLeft: 231 | { 232 | _hasMoved = YES; 233 | _isEditing = YES; 234 | CGFloat CurrentXIndex = [touch locationInView:self.tableView].x; 235 | CGFloat CurrentYIndex = [touch locationInView:self.tableView].y; 236 | NSLog(@"--- (%f,%f) --- %f",CurrentXIndex,CurrentYIndex,self.touchBeganPointX - CurrentXIndex); 237 | CGFloat delta = (self.touchBeganPointX - CurrentXIndex) * self.dragAcceleration; 238 | [self leftMenuAnimation:delta andCurrentIndexX:CurrentXIndex]; 239 | } 240 | break; 241 | case SCTableViewCellStyleBoth: 242 | { 243 | 244 | } 245 | break; 246 | case SCTableViewCellStyleDefault: 247 | { 248 | [super touchesMoved:touches withEvent:event]; 249 | } 250 | default: 251 | break; 252 | } 253 | } 254 | else 255 | { 256 | [super touchesMoved:touches withEvent:event]; 257 | } 258 | } 259 | } 260 | else 261 | { 262 | [super touchesMoved:touches withEvent:event]; 263 | return; 264 | } 265 | } 266 | 267 | - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event 268 | { 269 | if(touches.count == 1) 270 | { 271 | self.tableView.scrollEnabled = YES; 272 | for(UITouch *touch in touches) 273 | { 274 | if(touch.tapCount > 1) 275 | { 276 | //双击事件可以由其他recognizer捕获到 277 | NSLog(@"double tap!"); 278 | [super touchesEnded:touches withEvent:event]; 279 | return; 280 | } 281 | if(touch.phase == UITouchPhaseEnded || touch.phase == UITouchPhaseCancelled) 282 | { 283 | CGFloat CurrentXIndex = [touch locationInView:self.tableView].x; 284 | CGFloat PreviousXIndex = [touch previousLocationInView:self.tableView].x; 285 | NSLog(@"end ! --(%f)-- %f",CurrentXIndex, PreviousXIndex - CurrentXIndex); 286 | switch (self.style) { 287 | case SCTableViewCellStyleRight: 288 | { 289 | [self rightMenuAnimationEndpreviousIndex:PreviousXIndex currentIndex:CurrentXIndex]; 290 | } 291 | break; 292 | case SCTableViewCellStyleLeft: 293 | { 294 | [self leftMenuAnimationEndpreviousIndex:PreviousXIndex currentIndex:CurrentXIndex]; 295 | } 296 | break; 297 | case SCTableViewCellStyleBoth: 298 | { 299 | 300 | } 301 | break; 302 | case SCTableViewCellStyleDefault: 303 | { 304 | if(fabs(PreviousXIndex - CurrentXIndex) <= 10.0f) 305 | { 306 | if(!_isEditing) 307 | { 308 | // 由于把整个手势的检测判断都覆盖了,这里需要把系统的didSelect也重新实现一下 309 | self.indexPath = [self.tableView indexPathForCell:self]; 310 | [self.tableView.delegate tableView:self.tableView didSelectRowAtIndexPath:self.indexPath]; 311 | return; 312 | } 313 | } 314 | } 315 | default: 316 | break; 317 | } 318 | } 319 | } 320 | } 321 | else 322 | { 323 | [super touchesEnded:touches withEvent:event]; 324 | return; 325 | } 326 | } 327 | 328 | - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event 329 | { 330 | if(touches.count == 1) 331 | { 332 | self.tableView.scrollEnabled = YES; 333 | for(UITouch *touch in touches) 334 | { 335 | if(touch.phase == UITouchPhaseEnded || touch.phase == UITouchPhaseCancelled) 336 | { 337 | NSLog(@"cancelled!"); 338 | CGFloat CurrentXIndex = [touch locationInView:self.tableView].x; 339 | switch (self.style) { 340 | case SCTableViewCellStyleRight: 341 | { 342 | if(CurrentXIndex > ScreenWidth/2.0f) 343 | { 344 | [self resetButtonsToOriginPosition]; 345 | } 346 | else 347 | { 348 | [self resetButtonsToDisplayPosition]; 349 | } 350 | } 351 | break; 352 | case SCTableViewCellStyleLeft: 353 | { 354 | if(CurrentXIndex > ScreenWidth/3.0f) 355 | { 356 | [self resetButtonsToOriginPosition]; 357 | } 358 | else 359 | { 360 | [self resetButtonsToDisplayPosition]; 361 | } 362 | } 363 | break; 364 | case SCTableViewCellStyleBoth: 365 | { 366 | 367 | } 368 | break; 369 | case SCTableViewCellStyleDefault: 370 | { 371 | [super touchesCancelled:touches withEvent:event]; 372 | } 373 | break; 374 | default: 375 | break; 376 | } 377 | } 378 | } 379 | } 380 | else 381 | { 382 | [super touchesCancelled:touches withEvent:event]; 383 | return; 384 | } 385 | } 386 | 387 | #pragma mark - Reset methods 388 | /** 389 | * 将Action重置到原始区域,即不可见区域 390 | */ 391 | - (void)resetButtonsToOriginPosition 392 | { 393 | switch (self.style) { 394 | case SCTableViewCellStyleRight: 395 | { 396 | [UIView animateWithDuration:self.resetAnimationDuration animations:^{ 397 | self.contentView.frame = CGRectMake(0.0f, self.contentView.top, self.contentView.width, self.contentView.height); 398 | for(UIButton *button in self.rightActionButtons) 399 | { 400 | button.frame = CGRectMake(ScreenWidth, 0.0f, self.buttonWidth, self.height); 401 | } 402 | } completion:^(BOOL finished) { 403 | _isMoving = NO; 404 | _hasMoved = NO; 405 | _isEditing = NO; 406 | }]; 407 | } 408 | break; 409 | case SCTableViewCellStyleLeft: 410 | { 411 | [UIView animateWithDuration:self.resetAnimationDuration animations:^{ 412 | self.contentView.frame = CGRectMake(0.0f, self.contentView.top, self.contentView.width, self.contentView.height); 413 | for(UIButton *button in self.leftActionButtons) 414 | { 415 | button.frame = CGRectMake(-self.buttonWidth, 0.0f, self.buttonWidth, self.height); 416 | } 417 | } completion:^(BOOL finished) { 418 | _isMoving = NO; 419 | _hasMoved = NO; 420 | _isEditing = NO; 421 | }]; 422 | } 423 | break; 424 | case SCTableViewCellStyleBoth: 425 | { 426 | 427 | } 428 | break; 429 | case SCTableViewCellStyleDefault: 430 | default: 431 | break; 432 | } 433 | } 434 | 435 | /** 436 | * 将Action重置到应该显示的区域,Both模式下可能需要引入当前编辑模式 437 | */ 438 | - (void)resetButtonsToDisplayPosition 439 | { 440 | switch (self.style) { 441 | case SCTableViewCellStyleRight: 442 | { 443 | [UIView animateWithDuration:self.resetAnimationDuration animations:^{ 444 | self.contentView.frame = CGRectMake(- ScreenWidth/2.0f, self.contentView.top, self.contentView.width, self.contentView.height); 445 | CGFloat t_start = ScreenWidth / 2.0f; 446 | for(UIButton *button in self.rightActionButtons) 447 | { 448 | button.frame = CGRectMake(t_start, 0.0f, self.buttonWidth, self.height); 449 | t_start += self.buttonWidth; 450 | } 451 | } completion:^(BOOL finished) { 452 | _isMoving = NO; 453 | _hasMoved = NO; 454 | _isEditing = YES; 455 | }]; 456 | } 457 | break; 458 | case SCTableViewCellStyleLeft: 459 | { 460 | [UIView animateWithDuration:self.resetAnimationDuration animations:^{ 461 | self.contentView.frame = CGRectMake(ScreenWidth/3.0f, self.contentView.top, self.contentView.width, self.contentView.height); 462 | CGFloat t_start = self.buttonWidth * (self.leftActionButtons.count - 1); 463 | for(UIButton *button in self.leftActionButtons) 464 | { 465 | button.frame = CGRectMake(t_start, 0.0f, self.buttonWidth, self.height); 466 | t_start -= self.buttonWidth; 467 | } 468 | } completion:^(BOOL finished) { 469 | _isMoving = NO; 470 | _hasMoved = NO; 471 | _isEditing = YES; 472 | }]; 473 | } 474 | break; 475 | case SCTableViewCellStyleBoth: 476 | { 477 | 478 | } 479 | break; 480 | case SCTableViewCellStyleDefault: 481 | default: 482 | break; 483 | } 484 | } 485 | 486 | #pragma mark - Delegate method to get data 487 | - (void)getActionsArray 488 | { 489 | self.indexPath = [self.tableView indexPathForCell:self]; 490 | switch (self.style) { 491 | case SCTableViewCellStyleRight: 492 | { 493 | if([self.delegate respondsToSelector:@selector(SCTableView:rightEditActionsForRowAtIndexPath:)]) 494 | { 495 | NSLog(@"get Actions!"); 496 | self.rightActionButtons = [[self.delegate SCTableView:self.tableView rightEditActionsForRowAtIndexPath:self.indexPath] mutableCopy]; 497 | 498 | // 右侧由于滑动空间小,个数不要超过三个 499 | assert(self.rightActionButtons.count < 4); 500 | 501 | self.buttonWidth = (self.width / 2.0f)/ self.rightActionButtons.count; 502 | 503 | for(UIButton *button in self.rightActionButtons) 504 | { 505 | button.frame = CGRectMake(ScreenWidth, 0.0f, self.buttonWidth, self.height); 506 | [button addTarget:self action:@selector(rightButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; 507 | [self addSubview:button]; 508 | } 509 | } 510 | } 511 | break; 512 | case SCTableViewCellStyleLeft: 513 | { 514 | if([self.delegate respondsToSelector:@selector(SCTableView:leftEditActionsForRowAtIndexPath:)]) 515 | { 516 | self.leftActionButtons = [[self.delegate SCTableView:self.tableView leftEditActionsForRowAtIndexPath:self.indexPath] mutableCopy]; 517 | 518 | // 左侧由于滑动空间小,个数不要超过一个 519 | assert(self.leftActionButtons.count < 2); 520 | 521 | self.buttonWidth = (self.width / 3.0f)/ self.leftActionButtons.count; 522 | 523 | for(UIButton *button in self.leftActionButtons) 524 | { 525 | button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight; 526 | button.contentEdgeInsets = UIEdgeInsetsMake(0,0,0,10); 527 | button.frame = CGRectMake(- self.buttonWidth, 0.0f, self.buttonWidth, self.height); 528 | [button addTarget:self action:@selector(leftButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; 529 | [self addSubview:button]; 530 | } 531 | } 532 | } 533 | break; 534 | case SCTableViewCellStyleBoth: 535 | { 536 | if([self.delegate respondsToSelector:@selector(SCTableView:rightEditActionsForRowAtIndexPath:)]) 537 | { 538 | self.rightActionButtons = [[self.delegate SCTableView:self.tableView rightEditActionsForRowAtIndexPath:self.indexPath] mutableCopy]; 539 | } 540 | if([self.delegate respondsToSelector:@selector(SCTableView:leftEditActionsForRowAtIndexPath:)]) 541 | { 542 | self.leftActionButtons = [[self.delegate SCTableView:self.tableView leftEditActionsForRowAtIndexPath:self.indexPath] mutableCopy]; 543 | } 544 | } 545 | break; 546 | case SCTableViewCellStyleDefault: 547 | default: 548 | break; 549 | } 550 | } 551 | 552 | - (void)getSCStyle 553 | { 554 | self.indexPath = [self.tableView indexPathForCell:self]; 555 | if([self.delegate respondsToSelector:@selector(SCTableView:editStyleForRowAtIndexPath:)]) 556 | { 557 | self.style = [self.delegate SCTableView:self.tableView editStyleForRowAtIndexPath:self.indexPath]; 558 | } 559 | } 560 | 561 | #pragma mark - Dragging processing methods 562 | /** 563 | * 右侧菜单滑动显示的过程代码 564 | * 565 | * @param delta 566 | * @param CurrentXIndex 567 | */ 568 | - (void)rightMenuAnimation:(CGFloat)delta andCurrentIndexX:(CGFloat)CurrentXIndex 569 | { 570 | if(delta > 0) 571 | { 572 | if(delta > ScreenWidth / 2.0f) 573 | { 574 | if(CurrentXIndex < INDEX_X_FOR_DELETING) 575 | { 576 | // 最后一个button需要变宽度了 577 | if(delta > ScreenWidth / 2.0f) 578 | { 579 | CGFloat t_delta = (delta - (ScreenWidth / 2.0f))/ self.rightActionButtons.count; 580 | [UIView animateWithDuration:self.dragAnimationDuration animations:^{ 581 | self.contentView.frame = CGRectMake(CurrentXIndex-self.width, self.contentView.top, self.contentView.width, self.contentView.height); 582 | 583 | CGFloat p_delta = delta; 584 | for(NSInteger i=0;i self.buttonWidth * self.rightActionButtons.count) 665 | { 666 | [self actionTrigger:YES button:(SCTableViewCellRowActionButton *)self.rightActionButtons.lastObject]; 667 | return; 668 | } 669 | 670 | if(fabs(PreviousXIndex - CurrentXIndex) <= 3.0f) 671 | { 672 | if(!_isEditing) 673 | { 674 | // 由于把整个手势的检测判断都覆盖了,这里需要把系统的didSelect也重新实现一下 675 | self.indexPath = [self.tableView indexPathForCell:self]; 676 | [self.tableView.delegate tableView:self.tableView didSelectRowAtIndexPath:self.indexPath]; 677 | return; 678 | } 679 | 680 | // 并没有怎么移动 681 | if(self.contentView.left < - ScreenWidth / 2.0f) 682 | { 683 | // 需要还原到显示的位置 684 | if(!_hasMoved) 685 | { 686 | return; 687 | } 688 | [self resetButtonsToDisplayPosition]; 689 | } 690 | else 691 | { 692 | // 需要还原到初始位置 693 | [self resetButtonsToOriginPosition]; 694 | } 695 | } 696 | else 697 | { 698 | if(CurrentXIndex > ScreenWidth / 2.0f) 699 | { 700 | // 需要还原到初始位置 701 | [self resetButtonsToOriginPosition]; 702 | } 703 | else 704 | { 705 | // 需要还原到显示的位置 706 | if(!_hasMoved) 707 | { 708 | return; 709 | } 710 | [self resetButtonsToDisplayPosition]; 711 | } 712 | } 713 | } 714 | 715 | - (void)leftMenuAnimationEndpreviousIndex:(CGFloat)PreviousXIndex currentIndex:(CGFloat)CurrentXIndex 716 | { 717 | // 判断特殊的删除情况 718 | if([(UIButton *)self.leftActionButtons.lastObject width] > self.buttonWidth * self.leftActionButtons.count) 719 | { 720 | [self actionTrigger:NO button:(SCTableViewCellRowActionButton *)self.leftActionButtons.lastObject]; 721 | return; 722 | } 723 | 724 | if(fabs(PreviousXIndex - CurrentXIndex) <= 3.0f) 725 | { 726 | if(!_isEditing) 727 | { 728 | // 由于把整个手势的检测判断都覆盖了,这里需要把系统的didSelect也重新实现一下 729 | self.indexPath = [self.tableView indexPathForCell:self]; 730 | [self.tableView.delegate tableView:self.tableView didSelectRowAtIndexPath:self.indexPath]; 731 | return; 732 | } 733 | 734 | // 并没有怎么移动 735 | if(self.contentView.left > ScreenWidth / 3.0f) 736 | { 737 | // 需要还原到显示的位置 738 | if(!_hasMoved) 739 | { 740 | return; 741 | } 742 | [self resetButtonsToDisplayPosition]; 743 | } 744 | else 745 | { 746 | // 需要还原到初始位置 747 | [self resetButtonsToOriginPosition]; 748 | } 749 | } 750 | else 751 | { 752 | if(CurrentXIndex < ScreenWidth / 3.0f) 753 | { 754 | // 需要还原到初始位置 755 | [self resetButtonsToOriginPosition]; 756 | } 757 | else 758 | { 759 | // 需要还原到显示的位置 760 | if(!_hasMoved) 761 | { 762 | return; 763 | } 764 | [self resetButtonsToDisplayPosition]; 765 | } 766 | } 767 | } 768 | 769 | - (void)leftMenuAnimation:(CGFloat)delta andCurrentIndexX:(CGFloat)CurrentXIndex 770 | { 771 | if(delta < 0) 772 | { 773 | delta = - delta; 774 | if(delta > ScreenWidth / 3.0f) 775 | { 776 | if(CurrentXIndex > ScreenWidth / 2.0f) 777 | { 778 | // 最后一个button需要变宽度了 779 | if(delta > ScreenWidth / 2.0f) 780 | { 781 | [UIView animateWithDuration:self.dragAnimationDuration animations:^{ 782 | CGFloat t_x = CurrentXIndex; 783 | self.contentView.frame = CGRectMake(t_x, self.contentView.top, self.contentView.width, self.contentView.height); 784 | UIButton *lastOne = [self.leftActionButtons lastObject]; 785 | lastOne.frame = CGRectMake(0.0f, 0.0f, t_x, self.height); 786 | }]; 787 | } 788 | else 789 | { 790 | // 位移量超过0像素才移动,这是保证只有右边的区域会出现 791 | [UIView animateWithDuration:self.dragAnimationDuration animations:^{ 792 | CGFloat t_x = CurrentXIndex; 793 | self.contentView.frame = CGRectMake(t_x, self.contentView.top, self.contentView.width, self.contentView.height); 794 | UIButton *lastOne = [self.leftActionButtons lastObject]; 795 | lastOne.frame = CGRectMake(0.0f, 0.0f,t_x, self.height); 796 | }]; 797 | } 798 | } 799 | else 800 | { 801 | CGFloat t_delta = (delta - (ScreenWidth / 3.0f))/ self.leftActionButtons.count; 802 | [UIView animateWithDuration:self.dragAnimationDuration animations:^{ 803 | self.contentView.frame = CGRectMake(delta, self.contentView.top, self.contentView.width, self.contentView.height); 804 | 805 | for(UIButton *button in self.leftActionButtons) 806 | { 807 | NSInteger index = [self.leftActionButtons indexOfObject:button]; 808 | button.frame = CGRectMake((self.buttonWidth + t_delta) * (self.leftActionButtons.count - 1 -index), 0.0f, self.buttonWidth + t_delta, self.height); 809 | } 810 | }]; 811 | } 812 | } 813 | else 814 | { 815 | // 位移量超过0像素才移动,这是保证只有右边的区域会出现 816 | [UIView animateWithDuration:self.dragAnimationDuration animations:^{ 817 | self.contentView.frame = CGRectMake(delta, self.contentView.top, self.contentView.width, self.contentView.height); 818 | 819 | CGFloat t_delta = 0.0f; 820 | for(UIButton *button in self.leftActionButtons) 821 | { 822 | t_delta = delta * (self.leftActionButtons.count - [self.leftActionButtons indexOfObject:button]) / self.leftActionButtons.count; 823 | button.frame = CGRectMake( - self.buttonWidth + t_delta, 0.0f, self.buttonWidth, self.height); 824 | } 825 | }]; 826 | } 827 | } 828 | } 829 | @end 830 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 09E9B343E09E6E5CF613E8AA37392238 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */; }; 11 | 1D257C607822390F450F7EC83F477223 /* Pods-SCTableViewCell_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = DE82FAD64835D61A11EB13E53928E403 /* Pods-SCTableViewCell_Example-dummy.m */; }; 12 | 2AA14C80DAE178111F74A103501DB974 /* SCTableViewCell-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 93CDAF58AE4D4388D4603E1D0493E319 /* SCTableViewCell-dummy.m */; }; 13 | 46E6E139E935C972B5EE42E7BDF776C8 /* UIViewExt.m in Sources */ = {isa = PBXBuildFile; fileRef = C0459C870FD42C8A5BB0F1132A2636B2 /* UIViewExt.m */; }; 14 | 4F3332B50282BD1C06F26D449610D33D /* SCTableViewCellRowActionButton.m in Sources */ = {isa = PBXBuildFile; fileRef = F85A8ABF6A57C3CE893FAA47850DD92C /* SCTableViewCellRowActionButton.m */; }; 15 | 5949A3FCB0A932B3DBD96C0A2EEB5EF0 /* SCTableViewCell.bundle in Resources */ = {isa = PBXBuildFile; fileRef = BBD797EA4CE978CF6D17602B350A58F4 /* SCTableViewCell.bundle */; }; 16 | 6194425BFC15B77261BE3A5E5AC8B6D7 /* Pods-SCTableViewCell_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B2AF8D4F09813E87FE86691F313B52AE /* Pods-SCTableViewCell_Tests-dummy.m */; }; 17 | 84E5234FD236D364C2F122B124A4C141 /* SCTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 07CC1CFB00EB2402E76759EF4D0AE183 /* SCTableViewCell.m */; }; 18 | 9208C92FA2A8896183C83AB3281E65B4 /* Pods-SCTableViewCell_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 38F731284D297B7BE353E4608C29FFB9 /* Pods-SCTableViewCell_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | 9E2608294E96B5E92749CF3B03E69697 /* SCTableViewCellRowActionButton.h in Headers */ = {isa = PBXBuildFile; fileRef = A4E3003CCFFDA14347B8EC39020793FC /* SCTableViewCellRowActionButton.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | 9F51595F8112BCBFDEDF1E0C5037FA26 /* Pods-SCTableViewCell_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = DB0FA78613FD807082D72A5FE5551EE7 /* Pods-SCTableViewCell_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | A1A02382D41489CEEFB4CFED4F528AAC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */; }; 22 | B0373CFB1156BF2D44B5206124679EA0 /* SCTableViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 912136520C1197693010BFE7360076E3 /* SCTableViewCell.h */; settings = {ATTRIBUTES = (Public, ); }; }; 23 | DE46AABC4D741D35E3513569CD3ABDCE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */; }; 24 | FBD7212461491D723ACE96012E3C212C /* SCTableViewCell-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F8CD3351B308EF66EAC2814DDBA46BEF /* SCTableViewCell-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 25 | FFBEC7D6AB77B557647D657BEF10EAE3 /* UIViewExt.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A370D212C2FBF76519489A52E600E15 /* UIViewExt.h */; settings = {ATTRIBUTES = (Public, ); }; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 2BD650158A1FB09B4D939D419E4E1926 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 1ABEBBDCCEC5F549B975723C81025552; 34 | remoteInfo = SCTableViewCell; 35 | }; 36 | B59C26AF4A5E5D0535E94FC32DBCFB3A /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 9D14D76CDCD81D60A1A2C96927C015E2; 41 | remoteInfo = "SCTableViewCell-SCTableViewCell"; 42 | }; 43 | E575C748BBEEEC184EEE6E5D32428461 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 46 | proxyType = 1; 47 | remoteGlobalIDString = 1ABEBBDCCEC5F549B975723C81025552; 48 | remoteInfo = SCTableViewCell; 49 | }; 50 | /* End PBXContainerItemProxy section */ 51 | 52 | /* Begin PBXFileReference section */ 53 | 07CC1CFB00EB2402E76759EF4D0AE183 /* SCTableViewCell.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SCTableViewCell.m; sourceTree = ""; }; 54 | 0FD3C3216BB33FB9DC1AC5EFBC7C5382 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 1A370D212C2FBF76519489A52E600E15 /* UIViewExt.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = UIViewExt.h; sourceTree = ""; }; 56 | 38F731284D297B7BE353E4608C29FFB9 /* Pods-SCTableViewCell_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SCTableViewCell_Tests-umbrella.h"; sourceTree = ""; }; 57 | 3A5E9F426D9185D0106328F335D16993 /* Pods-SCTableViewCell_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SCTableViewCell_Example.modulemap"; sourceTree = ""; }; 58 | 3B0EE304DA6C7A8F2C49E382227F9E80 /* Pods-SCTableViewCell_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SCTableViewCell_Example.release.xcconfig"; sourceTree = ""; }; 59 | 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 60 | 443B7ADBF981D8DC9794D6B83335B3E6 /* Pods-SCTableViewCell_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SCTableViewCell_Example-acknowledgements.plist"; sourceTree = ""; }; 61 | 4F28477A4B17294CBE876D94C755DEAC /* SCTableViewCell-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SCTableViewCell-prefix.pch"; sourceTree = ""; }; 62 | 537D02A71DB19FB4AAE7DCACE459AAA6 /* SCTableViewCell.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = SCTableViewCell.modulemap; sourceTree = ""; }; 63 | 5449E1EC4C67BA00D40D61028C5548D3 /* Pods-SCTableViewCell_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SCTableViewCell_Example.debug.xcconfig"; sourceTree = ""; }; 64 | 588CB71734781F839FEC754E4DC17275 /* Pods-SCTableViewCell_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SCTableViewCell_Example-acknowledgements.markdown"; sourceTree = ""; }; 65 | 74581295058289215E682392638ED75F /* Pods_SCTableViewCell_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SCTableViewCell_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | 85CF0CB3ACD9FC9F8B0D125BCE14C062 /* Pods-SCTableViewCell_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SCTableViewCell_Tests.release.xcconfig"; sourceTree = ""; }; 67 | 8688E7EF87F09D939EEE87FAF730E568 /* SCTableViewCell.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SCTableViewCell.xcconfig; sourceTree = ""; }; 68 | 8A9318DC796B9C2488A9DBB2D5F49538 /* Pods-SCTableViewCell_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SCTableViewCell_Tests-acknowledgements.markdown"; sourceTree = ""; }; 69 | 912136520C1197693010BFE7360076E3 /* SCTableViewCell.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SCTableViewCell.h; sourceTree = ""; }; 70 | 93CDAF58AE4D4388D4603E1D0493E319 /* SCTableViewCell-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SCTableViewCell-dummy.m"; sourceTree = ""; }; 71 | 96B9E23D83B12ECA4E30F39019324653 /* Pods-SCTableViewCell_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SCTableViewCell_Tests-acknowledgements.plist"; sourceTree = ""; }; 72 | 9B6BA725F54F951A871B5B39D3DBBF17 /* SCTableViewCell.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SCTableViewCell.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 73 | A4E3003CCFFDA14347B8EC39020793FC /* SCTableViewCellRowActionButton.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = SCTableViewCellRowActionButton.h; sourceTree = ""; }; 74 | B2AF8D4F09813E87FE86691F313B52AE /* Pods-SCTableViewCell_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SCTableViewCell_Tests-dummy.m"; sourceTree = ""; }; 75 | B650AFDFAB47910C93F27150E4E0855B /* Pods-SCTableViewCell_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SCTableViewCell_Example-frameworks.sh"; sourceTree = ""; }; 76 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 77 | BBD797EA4CE978CF6D17602B350A58F4 /* SCTableViewCell.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SCTableViewCell.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 78 | BE9D2F63C7AE04F7EFC20AFC7F6EA40E /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 79 | C0459C870FD42C8A5BB0F1132A2636B2 /* UIViewExt.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = UIViewExt.m; sourceTree = ""; }; 80 | D39BF4FF42DDF09ED8814A590BCD2963 /* Pods-SCTableViewCell_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SCTableViewCell_Tests-resources.sh"; sourceTree = ""; }; 81 | D5CAAD14BA5D1441EDFB76B7FC50B0ED /* Pods-SCTableViewCell_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SCTableViewCell_Tests.debug.xcconfig"; sourceTree = ""; }; 82 | D74CA0BD9DA1B4650B737A9A22022A5A /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 83 | DB0FA78613FD807082D72A5FE5551EE7 /* Pods-SCTableViewCell_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SCTableViewCell_Example-umbrella.h"; sourceTree = ""; }; 84 | DE82FAD64835D61A11EB13E53928E403 /* Pods-SCTableViewCell_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SCTableViewCell_Example-dummy.m"; sourceTree = ""; }; 85 | DEC8863E037FB70ED11B33F008A8DBEE /* Pods-SCTableViewCell_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SCTableViewCell_Example-resources.sh"; sourceTree = ""; }; 86 | DEFED6A861B1984C8078AD63C2DB518C /* Pods-SCTableViewCell_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SCTableViewCell_Tests.modulemap"; sourceTree = ""; }; 87 | EDAB2590802105C243D31E9FF38D91A0 /* Pods_SCTableViewCell_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SCTableViewCell_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 88 | F85A8ABF6A57C3CE893FAA47850DD92C /* SCTableViewCellRowActionButton.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = SCTableViewCellRowActionButton.m; sourceTree = ""; }; 89 | F8CD3351B308EF66EAC2814DDBA46BEF /* SCTableViewCell-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SCTableViewCell-umbrella.h"; sourceTree = ""; }; 90 | F927542B82F123188C8F0954F5B6C3E5 /* Pods-SCTableViewCell_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SCTableViewCell_Tests-frameworks.sh"; sourceTree = ""; }; 91 | /* End PBXFileReference section */ 92 | 93 | /* Begin PBXFrameworksBuildPhase section */ 94 | 06B08DF1CC3F590EE67DEE95A193C5C8 /* Frameworks */ = { 95 | isa = PBXFrameworksBuildPhase; 96 | buildActionMask = 2147483647; 97 | files = ( 98 | DE46AABC4D741D35E3513569CD3ABDCE /* Foundation.framework in Frameworks */, 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | C4A1CD7D838A55419FE87D47C41D06F7 /* Frameworks */ = { 103 | isa = PBXFrameworksBuildPhase; 104 | buildActionMask = 2147483647; 105 | files = ( 106 | 09E9B343E09E6E5CF613E8AA37392238 /* Foundation.framework in Frameworks */, 107 | ); 108 | runOnlyForDeploymentPostprocessing = 0; 109 | }; 110 | CA9A8E58CC8E746E8797787933B27402 /* Frameworks */ = { 111 | isa = PBXFrameworksBuildPhase; 112 | buildActionMask = 2147483647; 113 | files = ( 114 | ); 115 | runOnlyForDeploymentPostprocessing = 0; 116 | }; 117 | F7B17084B84CA5092353BC46DEDA704D /* Frameworks */ = { 118 | isa = PBXFrameworksBuildPhase; 119 | buildActionMask = 2147483647; 120 | files = ( 121 | A1A02382D41489CEEFB4CFED4F528AAC /* Foundation.framework in Frameworks */, 122 | ); 123 | runOnlyForDeploymentPostprocessing = 0; 124 | }; 125 | /* End PBXFrameworksBuildPhase section */ 126 | 127 | /* Begin PBXGroup section */ 128 | 004CB798067D2F50884D1FBC3A5742DC /* SCTableViewCell */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 8B5422CD0187208A54FAF6AD3EB79031 /* Pod */, 132 | DDA6C54EEFBAEDFDA91510AB298F2F19 /* Support Files */, 133 | ); 134 | name = SCTableViewCell; 135 | path = ../..; 136 | sourceTree = ""; 137 | }; 138 | 404A8A5F84C504D213830EACF41D4156 /* Pods-SCTableViewCell_Example */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | BE9D2F63C7AE04F7EFC20AFC7F6EA40E /* Info.plist */, 142 | 3A5E9F426D9185D0106328F335D16993 /* Pods-SCTableViewCell_Example.modulemap */, 143 | 588CB71734781F839FEC754E4DC17275 /* Pods-SCTableViewCell_Example-acknowledgements.markdown */, 144 | 443B7ADBF981D8DC9794D6B83335B3E6 /* Pods-SCTableViewCell_Example-acknowledgements.plist */, 145 | DE82FAD64835D61A11EB13E53928E403 /* Pods-SCTableViewCell_Example-dummy.m */, 146 | B650AFDFAB47910C93F27150E4E0855B /* Pods-SCTableViewCell_Example-frameworks.sh */, 147 | DEC8863E037FB70ED11B33F008A8DBEE /* Pods-SCTableViewCell_Example-resources.sh */, 148 | DB0FA78613FD807082D72A5FE5551EE7 /* Pods-SCTableViewCell_Example-umbrella.h */, 149 | 5449E1EC4C67BA00D40D61028C5548D3 /* Pods-SCTableViewCell_Example.debug.xcconfig */, 150 | 3B0EE304DA6C7A8F2C49E382227F9E80 /* Pods-SCTableViewCell_Example.release.xcconfig */, 151 | ); 152 | name = "Pods-SCTableViewCell_Example"; 153 | path = "Target Support Files/Pods-SCTableViewCell_Example"; 154 | sourceTree = ""; 155 | }; 156 | 49A0390BF5471D0926D28C687E64B446 /* Products */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 74581295058289215E682392638ED75F /* Pods_SCTableViewCell_Example.framework */, 160 | EDAB2590802105C243D31E9FF38D91A0 /* Pods_SCTableViewCell_Tests.framework */, 161 | BBD797EA4CE978CF6D17602B350A58F4 /* SCTableViewCell.bundle */, 162 | 9B6BA725F54F951A871B5B39D3DBBF17 /* SCTableViewCell.framework */, 163 | ); 164 | name = Products; 165 | sourceTree = ""; 166 | }; 167 | 7DB346D0F39D3F0E887471402A8071AB = { 168 | isa = PBXGroup; 169 | children = ( 170 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, 171 | F81383157D9BA4552409C4186F3299DE /* Development Pods */, 172 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 173 | 49A0390BF5471D0926D28C687E64B446 /* Products */, 174 | 9F1A785CB2082E95342A448E469291C2 /* Targets Support Files */, 175 | ); 176 | sourceTree = ""; 177 | }; 178 | 8B5422CD0187208A54FAF6AD3EB79031 /* Pod */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | C8D133EA34F191C9C3F58AEF10599778 /* Classes */, 182 | ); 183 | path = Pod; 184 | sourceTree = ""; 185 | }; 186 | 9F1A785CB2082E95342A448E469291C2 /* Targets Support Files */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 404A8A5F84C504D213830EACF41D4156 /* Pods-SCTableViewCell_Example */, 190 | FBCBFE1A69DFC88AC46BD49B525F2734 /* Pods-SCTableViewCell_Tests */, 191 | ); 192 | name = "Targets Support Files"; 193 | sourceTree = ""; 194 | }; 195 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | BF6342C8B29F4CEEA088EFF7AB4DE362 /* iOS */, 199 | ); 200 | name = Frameworks; 201 | sourceTree = ""; 202 | }; 203 | BF6342C8B29F4CEEA088EFF7AB4DE362 /* iOS */ = { 204 | isa = PBXGroup; 205 | children = ( 206 | 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */, 207 | ); 208 | name = iOS; 209 | sourceTree = ""; 210 | }; 211 | C8D133EA34F191C9C3F58AEF10599778 /* Classes */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | 912136520C1197693010BFE7360076E3 /* SCTableViewCell.h */, 215 | 07CC1CFB00EB2402E76759EF4D0AE183 /* SCTableViewCell.m */, 216 | A4E3003CCFFDA14347B8EC39020793FC /* SCTableViewCellRowActionButton.h */, 217 | F85A8ABF6A57C3CE893FAA47850DD92C /* SCTableViewCellRowActionButton.m */, 218 | 1A370D212C2FBF76519489A52E600E15 /* UIViewExt.h */, 219 | C0459C870FD42C8A5BB0F1132A2636B2 /* UIViewExt.m */, 220 | ); 221 | path = Classes; 222 | sourceTree = ""; 223 | }; 224 | DDA6C54EEFBAEDFDA91510AB298F2F19 /* Support Files */ = { 225 | isa = PBXGroup; 226 | children = ( 227 | D74CA0BD9DA1B4650B737A9A22022A5A /* Info.plist */, 228 | 537D02A71DB19FB4AAE7DCACE459AAA6 /* SCTableViewCell.modulemap */, 229 | 8688E7EF87F09D939EEE87FAF730E568 /* SCTableViewCell.xcconfig */, 230 | 93CDAF58AE4D4388D4603E1D0493E319 /* SCTableViewCell-dummy.m */, 231 | 4F28477A4B17294CBE876D94C755DEAC /* SCTableViewCell-prefix.pch */, 232 | F8CD3351B308EF66EAC2814DDBA46BEF /* SCTableViewCell-umbrella.h */, 233 | ); 234 | name = "Support Files"; 235 | path = "Example/Pods/Target Support Files/SCTableViewCell"; 236 | sourceTree = ""; 237 | }; 238 | F81383157D9BA4552409C4186F3299DE /* Development Pods */ = { 239 | isa = PBXGroup; 240 | children = ( 241 | 004CB798067D2F50884D1FBC3A5742DC /* SCTableViewCell */, 242 | ); 243 | name = "Development Pods"; 244 | sourceTree = ""; 245 | }; 246 | FBCBFE1A69DFC88AC46BD49B525F2734 /* Pods-SCTableViewCell_Tests */ = { 247 | isa = PBXGroup; 248 | children = ( 249 | 0FD3C3216BB33FB9DC1AC5EFBC7C5382 /* Info.plist */, 250 | DEFED6A861B1984C8078AD63C2DB518C /* Pods-SCTableViewCell_Tests.modulemap */, 251 | 8A9318DC796B9C2488A9DBB2D5F49538 /* Pods-SCTableViewCell_Tests-acknowledgements.markdown */, 252 | 96B9E23D83B12ECA4E30F39019324653 /* Pods-SCTableViewCell_Tests-acknowledgements.plist */, 253 | B2AF8D4F09813E87FE86691F313B52AE /* Pods-SCTableViewCell_Tests-dummy.m */, 254 | F927542B82F123188C8F0954F5B6C3E5 /* Pods-SCTableViewCell_Tests-frameworks.sh */, 255 | D39BF4FF42DDF09ED8814A590BCD2963 /* Pods-SCTableViewCell_Tests-resources.sh */, 256 | 38F731284D297B7BE353E4608C29FFB9 /* Pods-SCTableViewCell_Tests-umbrella.h */, 257 | D5CAAD14BA5D1441EDFB76B7FC50B0ED /* Pods-SCTableViewCell_Tests.debug.xcconfig */, 258 | 85CF0CB3ACD9FC9F8B0D125BCE14C062 /* Pods-SCTableViewCell_Tests.release.xcconfig */, 259 | ); 260 | name = "Pods-SCTableViewCell_Tests"; 261 | path = "Target Support Files/Pods-SCTableViewCell_Tests"; 262 | sourceTree = ""; 263 | }; 264 | /* End PBXGroup section */ 265 | 266 | /* Begin PBXHeadersBuildPhase section */ 267 | 483EBC8E9785C176059701FA4989833B /* Headers */ = { 268 | isa = PBXHeadersBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | 9F51595F8112BCBFDEDF1E0C5037FA26 /* Pods-SCTableViewCell_Example-umbrella.h in Headers */, 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | }; 275 | 4B27F0DC918D72B9F5618CDD0DFFA1A7 /* Headers */ = { 276 | isa = PBXHeadersBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | 9208C92FA2A8896183C83AB3281E65B4 /* Pods-SCTableViewCell_Tests-umbrella.h in Headers */, 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | }; 283 | CBD3BCA4DC67EE4E6765A24D232E17C2 /* Headers */ = { 284 | isa = PBXHeadersBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | FBD7212461491D723ACE96012E3C212C /* SCTableViewCell-umbrella.h in Headers */, 288 | B0373CFB1156BF2D44B5206124679EA0 /* SCTableViewCell.h in Headers */, 289 | 9E2608294E96B5E92749CF3B03E69697 /* SCTableViewCellRowActionButton.h in Headers */, 290 | FFBEC7D6AB77B557647D657BEF10EAE3 /* UIViewExt.h in Headers */, 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | }; 294 | /* End PBXHeadersBuildPhase section */ 295 | 296 | /* Begin PBXNativeTarget section */ 297 | 1ABEBBDCCEC5F549B975723C81025552 /* SCTableViewCell */ = { 298 | isa = PBXNativeTarget; 299 | buildConfigurationList = 63EA2BCB0C0B3141B0E36F7188F2FC8C /* Build configuration list for PBXNativeTarget "SCTableViewCell" */; 300 | buildPhases = ( 301 | F5735C215499AF6BD7D2EDA689676FAE /* Sources */, 302 | F7B17084B84CA5092353BC46DEDA704D /* Frameworks */, 303 | A28702906D8CB66826CD1BFE2A9C228A /* Resources */, 304 | CBD3BCA4DC67EE4E6765A24D232E17C2 /* Headers */, 305 | ); 306 | buildRules = ( 307 | ); 308 | dependencies = ( 309 | C08A227D87A7E8B16BBDB3E3C956A646 /* PBXTargetDependency */, 310 | ); 311 | name = SCTableViewCell; 312 | productName = SCTableViewCell; 313 | productReference = 9B6BA725F54F951A871B5B39D3DBBF17 /* SCTableViewCell.framework */; 314 | productType = "com.apple.product-type.framework"; 315 | }; 316 | 3B5125C7CC6644E4FF1836FF597E69CE /* Pods-SCTableViewCell_Tests */ = { 317 | isa = PBXNativeTarget; 318 | buildConfigurationList = 87CD5F84816039CC3C7A8DD53DF00E00 /* Build configuration list for PBXNativeTarget "Pods-SCTableViewCell_Tests" */; 319 | buildPhases = ( 320 | 07FF95B400CF27640920BBAE0FB5CC82 /* Sources */, 321 | 06B08DF1CC3F590EE67DEE95A193C5C8 /* Frameworks */, 322 | 4B27F0DC918D72B9F5618CDD0DFFA1A7 /* Headers */, 323 | ); 324 | buildRules = ( 325 | ); 326 | dependencies = ( 327 | 6F211305C024D98B0615DF65A2C9A2A1 /* PBXTargetDependency */, 328 | ); 329 | name = "Pods-SCTableViewCell_Tests"; 330 | productName = "Pods-SCTableViewCell_Tests"; 331 | productReference = EDAB2590802105C243D31E9FF38D91A0 /* Pods_SCTableViewCell_Tests.framework */; 332 | productType = "com.apple.product-type.framework"; 333 | }; 334 | 9D14D76CDCD81D60A1A2C96927C015E2 /* SCTableViewCell-SCTableViewCell */ = { 335 | isa = PBXNativeTarget; 336 | buildConfigurationList = 40EF86792A9A3E009609C621C77E37C0 /* Build configuration list for PBXNativeTarget "SCTableViewCell-SCTableViewCell" */; 337 | buildPhases = ( 338 | C3015ED4BEAA6D03F696A92A5381CC78 /* Sources */, 339 | CA9A8E58CC8E746E8797787933B27402 /* Frameworks */, 340 | 5D26DFD3C75EB96F613D364CE107E346 /* Resources */, 341 | ); 342 | buildRules = ( 343 | ); 344 | dependencies = ( 345 | ); 346 | name = "SCTableViewCell-SCTableViewCell"; 347 | productName = "SCTableViewCell-SCTableViewCell"; 348 | productReference = BBD797EA4CE978CF6D17602B350A58F4 /* SCTableViewCell.bundle */; 349 | productType = "com.apple.product-type.bundle"; 350 | }; 351 | F1BC35BD46C7836BC3B27246A8874D05 /* Pods-SCTableViewCell_Example */ = { 352 | isa = PBXNativeTarget; 353 | buildConfigurationList = 532BB6A875AA765275F9412500ADE046 /* Build configuration list for PBXNativeTarget "Pods-SCTableViewCell_Example" */; 354 | buildPhases = ( 355 | CA0D0AFF67E91CBC32CFF5876182469C /* Sources */, 356 | C4A1CD7D838A55419FE87D47C41D06F7 /* Frameworks */, 357 | 483EBC8E9785C176059701FA4989833B /* Headers */, 358 | ); 359 | buildRules = ( 360 | ); 361 | dependencies = ( 362 | 692382C7154CF040E6A9F6EEC86829EF /* PBXTargetDependency */, 363 | ); 364 | name = "Pods-SCTableViewCell_Example"; 365 | productName = "Pods-SCTableViewCell_Example"; 366 | productReference = 74581295058289215E682392638ED75F /* Pods_SCTableViewCell_Example.framework */; 367 | productType = "com.apple.product-type.framework"; 368 | }; 369 | /* End PBXNativeTarget section */ 370 | 371 | /* Begin PBXProject section */ 372 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 373 | isa = PBXProject; 374 | attributes = { 375 | LastSwiftUpdateCheck = 0700; 376 | LastUpgradeCheck = 0700; 377 | }; 378 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 379 | compatibilityVersion = "Xcode 3.2"; 380 | developmentRegion = English; 381 | hasScannedForEncodings = 0; 382 | knownRegions = ( 383 | en, 384 | ); 385 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 386 | productRefGroup = 49A0390BF5471D0926D28C687E64B446 /* Products */; 387 | projectDirPath = ""; 388 | projectRoot = ""; 389 | targets = ( 390 | F1BC35BD46C7836BC3B27246A8874D05 /* Pods-SCTableViewCell_Example */, 391 | 3B5125C7CC6644E4FF1836FF597E69CE /* Pods-SCTableViewCell_Tests */, 392 | 1ABEBBDCCEC5F549B975723C81025552 /* SCTableViewCell */, 393 | 9D14D76CDCD81D60A1A2C96927C015E2 /* SCTableViewCell-SCTableViewCell */, 394 | ); 395 | }; 396 | /* End PBXProject section */ 397 | 398 | /* Begin PBXResourcesBuildPhase section */ 399 | 5D26DFD3C75EB96F613D364CE107E346 /* Resources */ = { 400 | isa = PBXResourcesBuildPhase; 401 | buildActionMask = 2147483647; 402 | files = ( 403 | ); 404 | runOnlyForDeploymentPostprocessing = 0; 405 | }; 406 | A28702906D8CB66826CD1BFE2A9C228A /* Resources */ = { 407 | isa = PBXResourcesBuildPhase; 408 | buildActionMask = 2147483647; 409 | files = ( 410 | 5949A3FCB0A932B3DBD96C0A2EEB5EF0 /* SCTableViewCell.bundle in Resources */, 411 | ); 412 | runOnlyForDeploymentPostprocessing = 0; 413 | }; 414 | /* End PBXResourcesBuildPhase section */ 415 | 416 | /* Begin PBXSourcesBuildPhase section */ 417 | 07FF95B400CF27640920BBAE0FB5CC82 /* Sources */ = { 418 | isa = PBXSourcesBuildPhase; 419 | buildActionMask = 2147483647; 420 | files = ( 421 | 6194425BFC15B77261BE3A5E5AC8B6D7 /* Pods-SCTableViewCell_Tests-dummy.m in Sources */, 422 | ); 423 | runOnlyForDeploymentPostprocessing = 0; 424 | }; 425 | C3015ED4BEAA6D03F696A92A5381CC78 /* Sources */ = { 426 | isa = PBXSourcesBuildPhase; 427 | buildActionMask = 2147483647; 428 | files = ( 429 | ); 430 | runOnlyForDeploymentPostprocessing = 0; 431 | }; 432 | CA0D0AFF67E91CBC32CFF5876182469C /* Sources */ = { 433 | isa = PBXSourcesBuildPhase; 434 | buildActionMask = 2147483647; 435 | files = ( 436 | 1D257C607822390F450F7EC83F477223 /* Pods-SCTableViewCell_Example-dummy.m in Sources */, 437 | ); 438 | runOnlyForDeploymentPostprocessing = 0; 439 | }; 440 | F5735C215499AF6BD7D2EDA689676FAE /* Sources */ = { 441 | isa = PBXSourcesBuildPhase; 442 | buildActionMask = 2147483647; 443 | files = ( 444 | 2AA14C80DAE178111F74A103501DB974 /* SCTableViewCell-dummy.m in Sources */, 445 | 84E5234FD236D364C2F122B124A4C141 /* SCTableViewCell.m in Sources */, 446 | 4F3332B50282BD1C06F26D449610D33D /* SCTableViewCellRowActionButton.m in Sources */, 447 | 46E6E139E935C972B5EE42E7BDF776C8 /* UIViewExt.m in Sources */, 448 | ); 449 | runOnlyForDeploymentPostprocessing = 0; 450 | }; 451 | /* End PBXSourcesBuildPhase section */ 452 | 453 | /* Begin PBXTargetDependency section */ 454 | 692382C7154CF040E6A9F6EEC86829EF /* PBXTargetDependency */ = { 455 | isa = PBXTargetDependency; 456 | name = SCTableViewCell; 457 | target = 1ABEBBDCCEC5F549B975723C81025552 /* SCTableViewCell */; 458 | targetProxy = 2BD650158A1FB09B4D939D419E4E1926 /* PBXContainerItemProxy */; 459 | }; 460 | 6F211305C024D98B0615DF65A2C9A2A1 /* PBXTargetDependency */ = { 461 | isa = PBXTargetDependency; 462 | name = SCTableViewCell; 463 | target = 1ABEBBDCCEC5F549B975723C81025552 /* SCTableViewCell */; 464 | targetProxy = E575C748BBEEEC184EEE6E5D32428461 /* PBXContainerItemProxy */; 465 | }; 466 | C08A227D87A7E8B16BBDB3E3C956A646 /* PBXTargetDependency */ = { 467 | isa = PBXTargetDependency; 468 | name = "SCTableViewCell-SCTableViewCell"; 469 | target = 9D14D76CDCD81D60A1A2C96927C015E2 /* SCTableViewCell-SCTableViewCell */; 470 | targetProxy = B59C26AF4A5E5D0535E94FC32DBCFB3A /* PBXContainerItemProxy */; 471 | }; 472 | /* End PBXTargetDependency section */ 473 | 474 | /* Begin XCBuildConfiguration section */ 475 | 06E5B2C0A2E0C240444D710E653D96B8 /* Release */ = { 476 | isa = XCBuildConfiguration; 477 | baseConfigurationReference = 8688E7EF87F09D939EEE87FAF730E568 /* SCTableViewCell.xcconfig */; 478 | buildSettings = { 479 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 480 | CURRENT_PROJECT_VERSION = 1; 481 | DEFINES_MODULE = YES; 482 | DYLIB_COMPATIBILITY_VERSION = 1; 483 | DYLIB_CURRENT_VERSION = 1; 484 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 485 | ENABLE_STRICT_OBJC_MSGSEND = YES; 486 | GCC_PREFIX_HEADER = "Target Support Files/SCTableViewCell/SCTableViewCell-prefix.pch"; 487 | INFOPLIST_FILE = "Target Support Files/SCTableViewCell/Info.plist"; 488 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 489 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 490 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 491 | MODULEMAP_FILE = "Target Support Files/SCTableViewCell/SCTableViewCell.modulemap"; 492 | MTL_ENABLE_DEBUG_INFO = NO; 493 | PRODUCT_NAME = SCTableViewCell; 494 | SDKROOT = iphoneos; 495 | SKIP_INSTALL = YES; 496 | TARGETED_DEVICE_FAMILY = "1,2"; 497 | VERSIONING_SYSTEM = "apple-generic"; 498 | VERSION_INFO_PREFIX = ""; 499 | }; 500 | name = Release; 501 | }; 502 | 67240E89B0E3305472C4D025CBD7583D /* Debug */ = { 503 | isa = XCBuildConfiguration; 504 | baseConfigurationReference = 5449E1EC4C67BA00D40D61028C5548D3 /* Pods-SCTableViewCell_Example.debug.xcconfig */; 505 | buildSettings = { 506 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 507 | CURRENT_PROJECT_VERSION = 1; 508 | DEFINES_MODULE = YES; 509 | DYLIB_COMPATIBILITY_VERSION = 1; 510 | DYLIB_CURRENT_VERSION = 1; 511 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 512 | ENABLE_STRICT_OBJC_MSGSEND = YES; 513 | INFOPLIST_FILE = "Target Support Files/Pods-SCTableViewCell_Example/Info.plist"; 514 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 515 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 516 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 517 | MACH_O_TYPE = staticlib; 518 | MODULEMAP_FILE = "Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example.modulemap"; 519 | MTL_ENABLE_DEBUG_INFO = YES; 520 | OTHER_LDFLAGS = ""; 521 | OTHER_LIBTOOLFLAGS = ""; 522 | PODS_ROOT = "$(SRCROOT)"; 523 | PRODUCT_NAME = Pods_SCTableViewCell_Example; 524 | SDKROOT = iphoneos; 525 | SKIP_INSTALL = YES; 526 | TARGETED_DEVICE_FAMILY = "1,2"; 527 | VERSIONING_SYSTEM = "apple-generic"; 528 | VERSION_INFO_PREFIX = ""; 529 | }; 530 | name = Debug; 531 | }; 532 | 77A97E133701C627D9F1B8867CCFABE7 /* Release */ = { 533 | isa = XCBuildConfiguration; 534 | baseConfigurationReference = 8688E7EF87F09D939EEE87FAF730E568 /* SCTableViewCell.xcconfig */; 535 | buildSettings = { 536 | ENABLE_STRICT_OBJC_MSGSEND = YES; 537 | PRODUCT_NAME = SCTableViewCell; 538 | SDKROOT = iphoneos; 539 | SKIP_INSTALL = YES; 540 | WRAPPER_EXTENSION = bundle; 541 | }; 542 | name = Release; 543 | }; 544 | 8C94F3482D2EC850E65A313CABC5F45E /* Debug */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = 8688E7EF87F09D939EEE87FAF730E568 /* SCTableViewCell.xcconfig */; 547 | buildSettings = { 548 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 549 | CURRENT_PROJECT_VERSION = 1; 550 | DEFINES_MODULE = YES; 551 | DYLIB_COMPATIBILITY_VERSION = 1; 552 | DYLIB_CURRENT_VERSION = 1; 553 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 554 | ENABLE_STRICT_OBJC_MSGSEND = YES; 555 | GCC_PREFIX_HEADER = "Target Support Files/SCTableViewCell/SCTableViewCell-prefix.pch"; 556 | INFOPLIST_FILE = "Target Support Files/SCTableViewCell/Info.plist"; 557 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 558 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 559 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 560 | MODULEMAP_FILE = "Target Support Files/SCTableViewCell/SCTableViewCell.modulemap"; 561 | MTL_ENABLE_DEBUG_INFO = YES; 562 | PRODUCT_NAME = SCTableViewCell; 563 | SDKROOT = iphoneos; 564 | SKIP_INSTALL = YES; 565 | TARGETED_DEVICE_FAMILY = "1,2"; 566 | VERSIONING_SYSTEM = "apple-generic"; 567 | VERSION_INFO_PREFIX = ""; 568 | }; 569 | name = Debug; 570 | }; 571 | 8EE205B08F13EC7C6E77EAE7C084E025 /* Debug */ = { 572 | isa = XCBuildConfiguration; 573 | baseConfigurationReference = 8688E7EF87F09D939EEE87FAF730E568 /* SCTableViewCell.xcconfig */; 574 | buildSettings = { 575 | ENABLE_STRICT_OBJC_MSGSEND = YES; 576 | PRODUCT_NAME = SCTableViewCell; 577 | SDKROOT = iphoneos; 578 | SKIP_INSTALL = YES; 579 | WRAPPER_EXTENSION = bundle; 580 | }; 581 | name = Debug; 582 | }; 583 | A289484F923DE111CDDB66C1A90216E8 /* Release */ = { 584 | isa = XCBuildConfiguration; 585 | baseConfigurationReference = 3B0EE304DA6C7A8F2C49E382227F9E80 /* Pods-SCTableViewCell_Example.release.xcconfig */; 586 | buildSettings = { 587 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 588 | CURRENT_PROJECT_VERSION = 1; 589 | DEFINES_MODULE = YES; 590 | DYLIB_COMPATIBILITY_VERSION = 1; 591 | DYLIB_CURRENT_VERSION = 1; 592 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 593 | ENABLE_STRICT_OBJC_MSGSEND = YES; 594 | INFOPLIST_FILE = "Target Support Files/Pods-SCTableViewCell_Example/Info.plist"; 595 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 596 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 597 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 598 | MACH_O_TYPE = staticlib; 599 | MODULEMAP_FILE = "Target Support Files/Pods-SCTableViewCell_Example/Pods-SCTableViewCell_Example.modulemap"; 600 | MTL_ENABLE_DEBUG_INFO = NO; 601 | OTHER_LDFLAGS = ""; 602 | OTHER_LIBTOOLFLAGS = ""; 603 | PODS_ROOT = "$(SRCROOT)"; 604 | PRODUCT_NAME = Pods_SCTableViewCell_Example; 605 | SDKROOT = iphoneos; 606 | SKIP_INSTALL = YES; 607 | TARGETED_DEVICE_FAMILY = "1,2"; 608 | VERSIONING_SYSTEM = "apple-generic"; 609 | VERSION_INFO_PREFIX = ""; 610 | }; 611 | name = Release; 612 | }; 613 | A70CDAD61F90AC503C7D04CC22DA2923 /* Debug */ = { 614 | isa = XCBuildConfiguration; 615 | buildSettings = { 616 | ALWAYS_SEARCH_USER_PATHS = NO; 617 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 618 | CLANG_CXX_LIBRARY = "libc++"; 619 | CLANG_ENABLE_MODULES = YES; 620 | CLANG_ENABLE_OBJC_ARC = YES; 621 | CLANG_WARN_BOOL_CONVERSION = YES; 622 | CLANG_WARN_CONSTANT_CONVERSION = YES; 623 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 624 | CLANG_WARN_EMPTY_BODY = YES; 625 | CLANG_WARN_ENUM_CONVERSION = YES; 626 | CLANG_WARN_INT_CONVERSION = YES; 627 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 628 | CLANG_WARN_UNREACHABLE_CODE = YES; 629 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 630 | COPY_PHASE_STRIP = NO; 631 | GCC_C_LANGUAGE_STANDARD = gnu99; 632 | GCC_DYNAMIC_NO_PIC = NO; 633 | GCC_OPTIMIZATION_LEVEL = 0; 634 | GCC_PREPROCESSOR_DEFINITIONS = ( 635 | "DEBUG=1", 636 | "$(inherited)", 637 | ); 638 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 639 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 640 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 641 | GCC_WARN_UNDECLARED_SELECTOR = YES; 642 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 643 | GCC_WARN_UNUSED_FUNCTION = YES; 644 | GCC_WARN_UNUSED_VARIABLE = YES; 645 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 646 | ONLY_ACTIVE_ARCH = YES; 647 | STRIP_INSTALLED_PRODUCT = NO; 648 | SYMROOT = "${SRCROOT}/../build"; 649 | }; 650 | name = Debug; 651 | }; 652 | CD2E849DDAC95C209BFFDEC677B98AFB /* Release */ = { 653 | isa = XCBuildConfiguration; 654 | baseConfigurationReference = 85CF0CB3ACD9FC9F8B0D125BCE14C062 /* Pods-SCTableViewCell_Tests.release.xcconfig */; 655 | buildSettings = { 656 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 657 | CURRENT_PROJECT_VERSION = 1; 658 | DEFINES_MODULE = YES; 659 | DYLIB_COMPATIBILITY_VERSION = 1; 660 | DYLIB_CURRENT_VERSION = 1; 661 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 662 | ENABLE_STRICT_OBJC_MSGSEND = YES; 663 | INFOPLIST_FILE = "Target Support Files/Pods-SCTableViewCell_Tests/Info.plist"; 664 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 665 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 666 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 667 | MACH_O_TYPE = staticlib; 668 | MODULEMAP_FILE = "Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests.modulemap"; 669 | MTL_ENABLE_DEBUG_INFO = NO; 670 | OTHER_LDFLAGS = ""; 671 | OTHER_LIBTOOLFLAGS = ""; 672 | PODS_ROOT = "$(SRCROOT)"; 673 | PRODUCT_NAME = Pods_SCTableViewCell_Tests; 674 | SDKROOT = iphoneos; 675 | SKIP_INSTALL = YES; 676 | TARGETED_DEVICE_FAMILY = "1,2"; 677 | VERSIONING_SYSTEM = "apple-generic"; 678 | VERSION_INFO_PREFIX = ""; 679 | }; 680 | name = Release; 681 | }; 682 | CE97AD671FF397B9F9B896D2CAAFE602 /* Debug */ = { 683 | isa = XCBuildConfiguration; 684 | baseConfigurationReference = D5CAAD14BA5D1441EDFB76B7FC50B0ED /* Pods-SCTableViewCell_Tests.debug.xcconfig */; 685 | buildSettings = { 686 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 687 | CURRENT_PROJECT_VERSION = 1; 688 | DEFINES_MODULE = YES; 689 | DYLIB_COMPATIBILITY_VERSION = 1; 690 | DYLIB_CURRENT_VERSION = 1; 691 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 692 | ENABLE_STRICT_OBJC_MSGSEND = YES; 693 | INFOPLIST_FILE = "Target Support Files/Pods-SCTableViewCell_Tests/Info.plist"; 694 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 695 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 696 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 697 | MACH_O_TYPE = staticlib; 698 | MODULEMAP_FILE = "Target Support Files/Pods-SCTableViewCell_Tests/Pods-SCTableViewCell_Tests.modulemap"; 699 | MTL_ENABLE_DEBUG_INFO = YES; 700 | OTHER_LDFLAGS = ""; 701 | OTHER_LIBTOOLFLAGS = ""; 702 | PODS_ROOT = "$(SRCROOT)"; 703 | PRODUCT_NAME = Pods_SCTableViewCell_Tests; 704 | SDKROOT = iphoneos; 705 | SKIP_INSTALL = YES; 706 | TARGETED_DEVICE_FAMILY = "1,2"; 707 | VERSIONING_SYSTEM = "apple-generic"; 708 | VERSION_INFO_PREFIX = ""; 709 | }; 710 | name = Debug; 711 | }; 712 | FB45FFD90572718D82AB9092B750F0CA /* Release */ = { 713 | isa = XCBuildConfiguration; 714 | buildSettings = { 715 | ALWAYS_SEARCH_USER_PATHS = NO; 716 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 717 | CLANG_CXX_LIBRARY = "libc++"; 718 | CLANG_ENABLE_MODULES = YES; 719 | CLANG_ENABLE_OBJC_ARC = YES; 720 | CLANG_WARN_BOOL_CONVERSION = YES; 721 | CLANG_WARN_CONSTANT_CONVERSION = YES; 722 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 723 | CLANG_WARN_EMPTY_BODY = YES; 724 | CLANG_WARN_ENUM_CONVERSION = YES; 725 | CLANG_WARN_INT_CONVERSION = YES; 726 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 727 | CLANG_WARN_UNREACHABLE_CODE = YES; 728 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 729 | COPY_PHASE_STRIP = YES; 730 | ENABLE_NS_ASSERTIONS = NO; 731 | GCC_C_LANGUAGE_STANDARD = gnu99; 732 | GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; 733 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 734 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 735 | GCC_WARN_UNDECLARED_SELECTOR = YES; 736 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 737 | GCC_WARN_UNUSED_FUNCTION = YES; 738 | GCC_WARN_UNUSED_VARIABLE = YES; 739 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 740 | STRIP_INSTALLED_PRODUCT = NO; 741 | SYMROOT = "${SRCROOT}/../build"; 742 | VALIDATE_PRODUCT = YES; 743 | }; 744 | name = Release; 745 | }; 746 | /* End XCBuildConfiguration section */ 747 | 748 | /* Begin XCConfigurationList section */ 749 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 750 | isa = XCConfigurationList; 751 | buildConfigurations = ( 752 | A70CDAD61F90AC503C7D04CC22DA2923 /* Debug */, 753 | FB45FFD90572718D82AB9092B750F0CA /* Release */, 754 | ); 755 | defaultConfigurationIsVisible = 0; 756 | defaultConfigurationName = Release; 757 | }; 758 | 40EF86792A9A3E009609C621C77E37C0 /* Build configuration list for PBXNativeTarget "SCTableViewCell-SCTableViewCell" */ = { 759 | isa = XCConfigurationList; 760 | buildConfigurations = ( 761 | 8EE205B08F13EC7C6E77EAE7C084E025 /* Debug */, 762 | 77A97E133701C627D9F1B8867CCFABE7 /* Release */, 763 | ); 764 | defaultConfigurationIsVisible = 0; 765 | defaultConfigurationName = Release; 766 | }; 767 | 532BB6A875AA765275F9412500ADE046 /* Build configuration list for PBXNativeTarget "Pods-SCTableViewCell_Example" */ = { 768 | isa = XCConfigurationList; 769 | buildConfigurations = ( 770 | 67240E89B0E3305472C4D025CBD7583D /* Debug */, 771 | A289484F923DE111CDDB66C1A90216E8 /* Release */, 772 | ); 773 | defaultConfigurationIsVisible = 0; 774 | defaultConfigurationName = Release; 775 | }; 776 | 63EA2BCB0C0B3141B0E36F7188F2FC8C /* Build configuration list for PBXNativeTarget "SCTableViewCell" */ = { 777 | isa = XCConfigurationList; 778 | buildConfigurations = ( 779 | 8C94F3482D2EC850E65A313CABC5F45E /* Debug */, 780 | 06E5B2C0A2E0C240444D710E653D96B8 /* Release */, 781 | ); 782 | defaultConfigurationIsVisible = 0; 783 | defaultConfigurationName = Release; 784 | }; 785 | 87CD5F84816039CC3C7A8DD53DF00E00 /* Build configuration list for PBXNativeTarget "Pods-SCTableViewCell_Tests" */ = { 786 | isa = XCConfigurationList; 787 | buildConfigurations = ( 788 | CE97AD671FF397B9F9B896D2CAAFE602 /* Debug */, 789 | CD2E849DDAC95C209BFFDEC677B98AFB /* Release */, 790 | ); 791 | defaultConfigurationIsVisible = 0; 792 | defaultConfigurationName = Release; 793 | }; 794 | /* End XCConfigurationList section */ 795 | }; 796 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 797 | } 798 | --------------------------------------------------------------------------------