├── ZFSetting.gif
├── Setting
├── Setting
│ ├── Assets.xcassets
│ │ ├── Contents.json
│ │ ├── IDInfo.imageset
│ │ │ ├── IDInfo@2x.png
│ │ │ └── Contents.json
│ │ ├── MoreHelp.imageset
│ │ │ ├── MoreHelp@2x.png
│ │ │ └── Contents.json
│ │ ├── MorePush.imageset
│ │ │ ├── MorePush@2x.png
│ │ │ └── Contents.json
│ │ ├── MoreAbout.imageset
│ │ │ ├── MoreAbout@2x.png
│ │ │ └── Contents.json
│ │ ├── MoreShare.imageset
│ │ │ ├── MoreShare@2x.png
│ │ │ └── Contents.json
│ │ ├── MoreUpdate.imageset
│ │ │ ├── MoreUpdate@2x.png
│ │ │ └── Contents.json
│ │ ├── handShake.imageset
│ │ │ ├── handShake@2x.png
│ │ │ └── Contents.json
│ │ ├── MoreMessage.imageset
│ │ │ ├── MoreMessage@2x.png
│ │ │ └── Contents.json
│ │ ├── sound_Effect.imageset
│ │ │ ├── sound_Effect@2x.png
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── ZFSettingViewController.h
│ ├── ZFPushNoticeViewController.h
│ ├── AppDelegate.h
│ ├── main.m
│ ├── Info.plist
│ ├── AppDelegate.m
│ ├── ZFPushNoticeViewController.m
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── ZFettingViewController.m
├── Setting.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── project.pbxproj
├── SettingTests
│ ├── Info.plist
│ └── SettingTests.m
└── SettingUITests
│ ├── Info.plist
│ └── SettingUITests.m
├── ZFSetting
├── Model
│ ├── ZFSettingGroup.m
│ ├── ZFSettingGroup.h
│ ├── ZFSettingItem.m
│ └── ZFSettingItem.h
├── View
│ ├── ZFSettingCell.h
│ └── ZFSettingCell.m
└── Controller
│ ├── ZFBaseSettingViewController.h
│ └── ZFBaseSettingViewController.m
├── ZFSetting.podspec
├── .gitignore
├── README.md
└── LICENSE
/ZFSetting.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/renzifeng/ZFSetting/HEAD/ZFSetting.gif
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/IDInfo.imageset/IDInfo@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/renzifeng/ZFSetting/HEAD/Setting/Setting/Assets.xcassets/IDInfo.imageset/IDInfo@2x.png
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MoreHelp.imageset/MoreHelp@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/renzifeng/ZFSetting/HEAD/Setting/Setting/Assets.xcassets/MoreHelp.imageset/MoreHelp@2x.png
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MorePush.imageset/MorePush@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/renzifeng/ZFSetting/HEAD/Setting/Setting/Assets.xcassets/MorePush.imageset/MorePush@2x.png
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MoreAbout.imageset/MoreAbout@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/renzifeng/ZFSetting/HEAD/Setting/Setting/Assets.xcassets/MoreAbout.imageset/MoreAbout@2x.png
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MoreShare.imageset/MoreShare@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/renzifeng/ZFSetting/HEAD/Setting/Setting/Assets.xcassets/MoreShare.imageset/MoreShare@2x.png
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MoreUpdate.imageset/MoreUpdate@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/renzifeng/ZFSetting/HEAD/Setting/Setting/Assets.xcassets/MoreUpdate.imageset/MoreUpdate@2x.png
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/handShake.imageset/handShake@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/renzifeng/ZFSetting/HEAD/Setting/Setting/Assets.xcassets/handShake.imageset/handShake@2x.png
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MoreMessage.imageset/MoreMessage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/renzifeng/ZFSetting/HEAD/Setting/Setting/Assets.xcassets/MoreMessage.imageset/MoreMessage@2x.png
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/sound_Effect.imageset/sound_Effect@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/renzifeng/ZFSetting/HEAD/Setting/Setting/Assets.xcassets/sound_Effect.imageset/sound_Effect@2x.png
--------------------------------------------------------------------------------
/Setting/Setting.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZFSetting/Model/ZFSettingGroup.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZFSettingGroup.m
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | //
8 |
9 | #import "ZFSettingGroup.h"
10 |
11 | @implementation ZFSettingGroup
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Setting/Setting/ZFSettingViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZFSettingViewController.h
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | //
8 |
9 | #import "ZFBaseSettingViewController.h"
10 |
11 | @interface ZFSettingViewController : ZFBaseSettingViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Setting/Setting/ZFPushNoticeViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZFPushNoticeViewController.h
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | // 推送和提醒
8 |
9 | #import "ZFBaseSettingViewController.h"
10 |
11 | @interface ZFPushNoticeViewController : ZFBaseSettingViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Setting/Setting/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright © 2015年 任子丰. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (strong, nonatomic) UIWindow *window;
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/Setting/Setting/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // Setting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright © 2015年 任子丰. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/ZFSetting/View/ZFSettingCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZFSettingCell.h
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | //
8 |
9 | #import
10 | @class ZFSettingItem;
11 | @interface ZFSettingCell : UITableViewCell
12 |
13 | @property (nonatomic, strong) ZFSettingItem *item;
14 |
15 | + (instancetype)settingCellWithTableView:(UITableView *)tableView;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/IDInfo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "IDInfo@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MoreHelp.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "MoreHelp@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MorePush.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "MorePush@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MoreAbout.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "MoreAbout@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MoreMessage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "MoreMessage@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MoreShare.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "MoreShare@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/MoreUpdate.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "MoreUpdate@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/handShake.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "handShake@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Setting/Setting/Assets.xcassets/sound_Effect.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "sound_Effect@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ZFSetting/Model/ZFSettingGroup.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZFSettingGroup.h
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ZFSettingGroup : NSObject
12 | /// 头部标题
13 | @property (nonatomic, copy) NSString *header;
14 | /// 尾部标题
15 | @property (nonatomic, copy) NSString *footer;
16 | /// 中间的条目
17 | @property (nonatomic, strong) NSArray *items;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/ZFSetting/Controller/ZFBaseSettingViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZFBaseSettingViewController.h
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "ZFSettingGroup.h"
11 | #import "ZFSettingItem.h"
12 |
13 | @interface ZFBaseSettingViewController : UIViewController {
14 | NSMutableArray *_allGroups; // 所有的组模型
15 | }
16 | @end
17 |
--------------------------------------------------------------------------------
/ZFSetting/Model/ZFSettingItem.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZFSettingItem.m
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | //
8 |
9 | #import "ZFSettingItem.h"
10 |
11 | @implementation ZFSettingItem
12 |
13 | + (instancetype)itemWithIcon:(NSString *)icon title:(NSString *)title type:(ZFSettingItemType)type {
14 | ZFSettingItem *item = [[self alloc] init];
15 | item.icon = icon;
16 | item.title = title;
17 | item.type = type;
18 | return item;
19 | }
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/ZFSetting.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |s|
2 | s.name = "ZFSetting"
3 | s.version = "0.0.1"
4 | s.summary = "An easy setting"
5 | s.homepage = "https://github.com/renzifeng/ZFSetting"
6 | s.license = 'MIT'
7 | s.author = { "renzifeng" => "zifeng1300@gmail.com" }
8 | s.source = { :git => "https://github.com/renzifeng/ZFSetting.git", :tag => s.version.to_s }
9 | s.platform = :ios, '7.0'
10 | s.requires_arc = true
11 | s.source_files = 'ZFSetting/**/*.{h,m}'
12 |
13 | end
14 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | build/
4 | *.pbxuser
5 | !default.pbxuser
6 | *.mode1v3
7 | !default.mode1v3
8 | *.mode2v3
9 | !default.mode2v3
10 | *.perspectivev3
11 | !default.perspectivev3
12 | xcuserdata
13 | *.xccheckout
14 | *.moved-aside
15 | DerivedData
16 | *.hmap
17 | *.ipa
18 | *.xcuserstate
19 |
20 | # CocoaPods
21 | #
22 | # We recommend against adding the Pods directory to your .gitignore. However
23 | # you should judge for yourself, the pros and cons are mentioned at:
24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
25 | #
26 | #Pods/
27 |
--------------------------------------------------------------------------------
/Setting/Setting/Assets.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" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/Setting/SettingTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Setting/SettingUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ZFSetting/Model/ZFSettingItem.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZFSettingItem.h
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | // 一个Item对应一个Cell
8 | // 用来描述当前cell里面显示的内容,描述点击cell后做什么事情
9 |
10 | #import
11 |
12 | typedef NS_ENUM(NSInteger, ZFSettingItemType) {
13 | ZFSettingItemTypeNone, // 什么也没有
14 | ZFSettingItemTypeArrow, // 箭头
15 | ZFSettingItemTypeSwitch // 开关
16 | };
17 |
18 | @interface ZFSettingItem : NSObject
19 | /// 图标
20 | @property (nonatomic, copy) NSString *icon;
21 | /// 标题
22 | @property (nonatomic, copy) NSString *title;
23 | /// 设置开关
24 | @property (nonatomic, assign, getter=isSwitchOn) BOOL switchOn;
25 | /// cell的样式
26 | @property (nonatomic, assign) ZFSettingItemType type;
27 | /// cell上开关的操作事件
28 | @property (nonatomic, copy) void (^switchBlock)(BOOL on);
29 | /// 点击cell后要执行的操作
30 | @property (nonatomic, copy) void (^operation)();
31 |
32 | + (instancetype)itemWithIcon:(NSString *)icon title:(NSString *)title type:(ZFSettingItemType)type;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/Setting/SettingTests/SettingTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // SettingTests.m
3 | // SettingTests
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright © 2015年 任子丰. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface SettingTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation SettingTests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 | // Put setup code here. This method is called before the invocation of each test method in the class.
20 | }
21 |
22 | - (void)tearDown {
23 | // Put teardown code here. This method is called after the invocation of each test method in the class.
24 | [super tearDown];
25 | }
26 |
27 | - (void)testExample {
28 | // This is an example of a functional test case.
29 | // Use XCTAssert and related functions to verify your tests produce the correct results.
30 | }
31 |
32 | - (void)testPerformanceExample {
33 | // This is an example of a performance test case.
34 | [self measureBlock:^{
35 | // Put the code you want to measure the time of here.
36 | }];
37 | }
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/Setting/Setting/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/Setting/SettingUITests/SettingUITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // SettingUITests.m
3 | // SettingUITests
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright © 2015年 任子丰. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface SettingUITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation SettingUITests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 |
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 |
22 | // In UI tests it is usually best to stop immediately when a failure occurs.
23 | self.continueAfterFailure = NO;
24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
25 | [[[XCUIApplication alloc] init] launch];
26 |
27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
28 | }
29 |
30 | - (void)tearDown {
31 | // Put teardown code here. This method is called after the invocation of each test method in the class.
32 | [super tearDown];
33 | }
34 |
35 | - (void)testExample {
36 | // Use recording to get started writing UI tests.
37 | // Use XCTAssert and related functions to verify your tests produce the correct results.
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/Setting/Setting/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright © 2015年 任子丰. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
18 | // Override point for customization after application launch.
19 | return YES;
20 | }
21 |
22 | - (void)applicationWillResignActive:(UIApplication *)application {
23 | // 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.
24 | // 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.
25 | }
26 |
27 | - (void)applicationDidEnterBackground:(UIApplication *)application {
28 | // 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.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | - (void)applicationWillEnterForeground:(UIApplication *)application {
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 | // 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.
38 | }
39 |
40 | - (void)applicationWillTerminate:(UIApplication *)application {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | // Saves changes in the application's managed object context before the application terminates.
43 | }
44 |
45 |
46 | @end
47 |
--------------------------------------------------------------------------------
/ZFSetting/View/ZFSettingCell.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZFSettingself.m
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | //
8 |
9 | #import "ZFSettingCell.h"
10 | #import "ZFSettingItem.h"
11 |
12 | @interface ZFSettingCell() {
13 | UISwitch *_switch;
14 | }
15 | @end
16 |
17 | @implementation ZFSettingCell
18 |
19 | + (instancetype)settingCellWithTableView:(UITableView *)tableView {
20 | // 0.用static修饰的局部变量,只会初始化一次
21 | static NSString *ID = @"Cell";
22 |
23 | // 1.拿到一个标识先去缓存池中查找对应的Cell
24 | ZFSettingCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
25 |
26 | // 2.如果缓存池中没有,才需要传入一个标识创建新的Cell
27 | if (!cell) {
28 | cell = [[ZFSettingCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
29 | }
30 |
31 | return cell;
32 | }
33 |
34 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
35 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
36 | if (self) {
37 | // Initialization code
38 | }
39 | return self;
40 | }
41 |
42 | - (void)setItem:(ZFSettingItem *)item {
43 | _item = item;
44 | // 设置数据
45 | self.imageView.image = item.icon.length ? [UIImage imageNamed:item.icon] : nil;
46 | self.textLabel.text = item.title;
47 | if (item.type == ZFSettingItemTypeArrow) {
48 | self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
49 | // 用默认的选中样式
50 | self.selectionStyle = UITableViewCellSelectionStyleBlue;
51 | } else if (item.type == ZFSettingItemTypeSwitch) {
52 | if (_switch == nil) {
53 | _switch = [[UISwitch alloc] init];
54 | _switch.on = item.switchOn;
55 | [_switch addTarget:self action:@selector(switchStatusChanged:) forControlEvents:UIControlEventValueChanged];
56 | } else {
57 | [_switch setOn:item.switchOn animated:YES];
58 | }
59 | // 右边显示开关
60 | self.accessoryView = _switch;
61 | // 禁止选中
62 | self.selectionStyle = UITableViewCellSelectionStyleNone;
63 | } else {
64 | // 什么也没有,清空右边显示的view
65 | self.accessoryView = nil;
66 | // 用默认的选中样式
67 | self.selectionStyle = UITableViewCellSelectionStyleBlue;
68 | }
69 | }
70 |
71 | #pragma mark - SwitchValueChanged
72 |
73 | - (void)switchStatusChanged:(UISwitch *)sender {
74 | if (self.item.switchBlock) {
75 | self.item.switchBlock(sender.on);
76 | }
77 | }
78 | @end
79 |
--------------------------------------------------------------------------------
/ZFSetting/Controller/ZFBaseSettingViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZFBaseSettingViewController.m
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | //
8 |
9 | #import "ZFBaseSettingViewController.h"
10 | #import "ZFSettingCell.h"
11 |
12 | @interface ZFBaseSettingViewController ()
13 |
14 | @end
15 |
16 | @implementation ZFBaseSettingViewController
17 |
18 | - (void)loadView {
19 | UITableView *tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame style:UITableViewStyleGrouped];
20 | tableView.delegate = self;
21 | tableView.dataSource = self;
22 | self.view = tableView;
23 | }
24 |
25 | - (void)viewDidLoad {
26 | [super viewDidLoad];
27 | _allGroups = [NSMutableArray array];
28 | }
29 |
30 | #pragma mark - Table view data source
31 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
32 | return _allGroups.count;
33 | }
34 |
35 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
36 | ZFSettingGroup *group = _allGroups[section];
37 | return group.items.count;
38 | }
39 |
40 | #pragma mark 每当有一个cell进入视野范围内就会调用,返回当前这行显示的cell
41 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
42 | // 1.创建一个ZFSettingCell
43 | ZFSettingCell *cell = [ZFSettingCell settingCellWithTableView:tableView];
44 |
45 | // 2.取出这行对应的模型(ZFSettingItem)
46 | ZFSettingGroup *group = _allGroups[indexPath.section];
47 | cell.item = group.items[indexPath.row];
48 | return cell;
49 | }
50 |
51 | #pragma mark 点击了cell后的操作
52 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
53 | // 0.取出这行对应的模型
54 | ZFSettingGroup *group = _allGroups[indexPath.section];
55 | ZFSettingItem *item = group.items[indexPath.row];
56 | [tableView deselectRowAtIndexPath:indexPath animated:YES];
57 | // 1.取出这行对应模型中的block代码
58 | if (item.operation) {
59 | // 执行block
60 | item.operation();
61 | }
62 | }
63 |
64 | #pragma mark 返回每一组的header标题
65 |
66 | - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
67 | ZFSettingGroup *group = _allGroups[section];
68 |
69 | return group.header;
70 | }
71 | #pragma mark 返回每一组的footer标题
72 |
73 | - (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {
74 | ZFSettingGroup *group = _allGroups[section];
75 |
76 | return group.footer;
77 | }
78 |
79 | @end
80 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ZFSetting
2 | [](https://camo.githubusercontent.com/474a2feaf657f12a6d2f1109a07886ba92fe3d31/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e2e737667)
3 | [](https://img.shields.io/cocoapods/v/ZFSetting.svg)
4 | [](https://camo.githubusercontent.com/c0e82513e10f9760e334cbed2799b3c86adf08d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e67756167652d6f626a632d3537383765352e737667)
5 | [](https://camo.githubusercontent.com/e7302c620b3589a361fc5503732f3505347205d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)
6 |
7 | 每个应用都有设置页面,所以把设置页面封装了一下,可以加快开发效率,简单实用。
8 |
9 | ### 效果演示:
10 | 
11 |
12 | #Installation with CocoaPods
13 | pod 'ZFSetting'
14 |
15 | #How To Use
16 | 直接继承ZFBaseSettingViewController,创建UIViewController的类,实现以下方法就可以实现设置页面的显示。
17 |
18 | ``` objc
19 | __weak typeof(self) weakSelf = self;
20 | // 初始化Item
21 | ZFSettingItem *help = [ZFSettingItem itemWithIcon:@"MoreHelp" title:@"帮助" type:ZFSettingItemTypeArrow];
22 | //cell点击事件的block回调
23 | help.operation = ^{
24 | UIViewController *helpVC = [[UIViewController alloc] init];
25 | helpVC.view.backgroundColor = [UIColor grayColor];
26 | helpVC.title = @"帮助";
27 | [weakSelf.navigationController pushViewController:helpVC animated:YES];
28 | };
29 | ZFSettingItem *shake = [ZFSettingItem itemWithIcon:@"sound_Effect" title:@"声音提示" type:ZFSettingItemTypeSwitch];
30 | //开关事件
31 | shake.switchBlock = ^(BOOL on) {
32 | NSLog(@"声音提示%zd",on);
33 | };
34 |
35 | ```
36 | ## cell的设置
37 | ```objc
38 | ZFSettingGroup *group = [[ZFSettingGroup alloc] init];
39 | group.header = @"高级设置";
40 | group.footer = @"这是footer";
41 | group.items = @[ help, share , about];
42 | [_allGroups addObject:group];
43 | ```
44 | ## 有技术问题也可以加我的iOS技术群,互相讨论,群号为:213376937
45 |
46 | # 期待
47 | - 如果在使用过程中遇到BUG,或发现功能不够用,希望你能Issues我者微博联系我[@任子丰](https://weibo.com/zifeng1300)
48 | - 如果觉得好用请Star!
--------------------------------------------------------------------------------
/Setting/Setting/ZFPushNoticeViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZFPushNoticeViewController.m
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | //
8 |
9 | #import "ZFPushNoticeViewController.h"
10 |
11 | @interface ZFPushNoticeViewController ()
12 |
13 | @end
14 |
15 | @implementation ZFPushNoticeViewController
16 |
17 | - (void)viewDidLoad
18 | {
19 | [super viewDidLoad];
20 |
21 | self.title = @"新消息通知";
22 |
23 | // 1.1
24 | ZFSettingItem *item1 = [ZFSettingItem itemWithIcon:nil title:@"接收新消息通知" type:ZFSettingItemTypeNone];
25 | //开关事件
26 | item1.switchBlock = ^(BOOL on) {
27 | NSLog(@"接收新消息通知%zd",on);
28 | };
29 |
30 | // 1.2
31 | ZFSettingItem *item2 = [ZFSettingItem itemWithIcon:nil title:@"通知显示消息详情" type:ZFSettingItemTypeSwitch];
32 | item2.switchBlock = ^(BOOL on) {
33 | NSLog(@"通知显示消息详情%zd",on);
34 | };
35 |
36 | // 1.3
37 | ZFSettingItem *item3 = [ZFSettingItem itemWithIcon:nil title:@"功能消息免打扰" type:ZFSettingItemTypeArrow];
38 | item3.switchBlock = ^(BOOL on) {
39 | NSLog(@"功能消息免打扰%zd",on);
40 | };
41 |
42 | // 1.4
43 | ZFSettingItem *item4 = [ZFSettingItem itemWithIcon:nil title:@"声音" type:ZFSettingItemTypeSwitch];
44 | item4.switchBlock = ^(BOOL on) {
45 | NSLog(@"声音%zd",on);
46 | };
47 |
48 | // 1.5
49 | ZFSettingItem *item5 = [ZFSettingItem itemWithIcon:nil title:@"振动" type:ZFSettingItemTypeSwitch];
50 | item5.switchBlock = ^(BOOL on) {
51 | NSLog(@"振动%zd",on);
52 | };
53 |
54 | // 1.6
55 | ZFSettingItem *item6 = [ZFSettingItem itemWithIcon:nil title:@"朋友圈照片更新" type:ZFSettingItemTypeSwitch];
56 | item6.switchBlock = ^(BOOL on) {
57 | NSLog(@"朋友圈照片更新%zd",on);
58 | };
59 |
60 | ZFSettingGroup *group1 = [[ZFSettingGroup alloc] init];
61 | group1.items = @[item1];
62 | group1.footer = @"如果你要关闭或者开启微信的新消息通知,请在iPhone的“设置”-“通知”功能中,找到应用程序“XX”更改";
63 | [_allGroups addObject:group1];
64 |
65 | ZFSettingGroup *group2 = [[ZFSettingGroup alloc] init];
66 | group2.items = @[item2];
67 | group2.footer = @"关闭后,当收到微信呢消息时,通知提示将不显示发现人和内容摘要";
68 | [_allGroups addObject:group2];
69 |
70 | ZFSettingGroup *group3 = [[ZFSettingGroup alloc] init];
71 | group3.items = @[item3];
72 | group3.footer = @"设置系统功能消息提示声音和振动的时段";
73 | [_allGroups addObject:group3];
74 |
75 | ZFSettingGroup *group4 = [[ZFSettingGroup alloc] init];
76 | group4.items = @[item4,item5];
77 | group4.footer = @"当XX运行时,你可以设置是否需要声音或振动";
78 | [_allGroups addObject:group4];
79 |
80 | ZFSettingGroup *group5 = [[ZFSettingGroup alloc] init];
81 | group5.items = @[item6];
82 | group5.footer = @"关闭后,有朋友更新照片时,界面将不会出现提示";
83 | [_allGroups addObject:group5];
84 |
85 | }
86 |
87 | @end
88 |
--------------------------------------------------------------------------------
/Setting/Setting/Base.lproj/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 |
--------------------------------------------------------------------------------
/Setting/Setting/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/Setting/Setting/ZFettingViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZFSettingViewController.m
3 | // ZFSetting
4 | //
5 | // Created by 任子丰 on 15/9/19.
6 | // Copyright (c) 2013年 任子丰. All rights reserved.
7 | //
8 |
9 | #import "ZFSettingViewController.h"
10 | #import "ZFPushNoticeViewController.h"
11 |
12 | @interface ZFSettingViewController ()
13 | @end
14 |
15 | @implementation ZFSettingViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 |
20 | // 1.第0组:3个
21 | [self add0SectionItems];
22 |
23 | // 2.第1组:6个
24 | [self add1SectionItems];
25 | }
26 |
27 | #pragma mark 添加第0组的模型数据
28 |
29 | - (void)add0SectionItems {
30 | __weak typeof(self) weakSelf = self;
31 | // 1.1.推送和提醒
32 | ZFSettingItem *push = [ZFSettingItem itemWithIcon:@"MorePush" title:@"新消息通知" type:ZFSettingItemTypeArrow];
33 | //cell点击事件
34 | push.operation = ^{
35 | ZFPushNoticeViewController *notice = [[ZFPushNoticeViewController alloc] init];
36 | [weakSelf.navigationController pushViewController:notice animated:YES];
37 | };
38 |
39 | // 1.2.声音提示
40 | ZFSettingItem *shake = [ZFSettingItem itemWithIcon:@"sound_Effect" title:@"声音提示" type:ZFSettingItemTypeSwitch];
41 | shake.switchOn = YES;
42 | //开关事件
43 | shake.switchBlock = ^(BOOL on) {
44 | NSLog(@"声音提示%zd",on);
45 | };
46 |
47 | ZFSettingGroup *group = [[ZFSettingGroup alloc] init];
48 | group.header = @"基本设置";
49 | group.items = @[push, shake];
50 | [_allGroups addObject:group];
51 | }
52 |
53 | #pragma mark 添加第1组的模型数据
54 | - (void)add1SectionItems {
55 | __weak typeof(self) weakSelf = self;
56 | // 帮助
57 | ZFSettingItem *help = [ZFSettingItem itemWithIcon:@"MoreHelp" title:@"帮助" type:ZFSettingItemTypeArrow];
58 | help.operation = ^{
59 | UIViewController *helpVC = [[UIViewController alloc] init];
60 | helpVC.view.backgroundColor = [UIColor grayColor];
61 | helpVC.title = @"帮助";
62 | [weakSelf.navigationController pushViewController:helpVC animated:YES];
63 | };
64 |
65 | // 分享
66 | ZFSettingItem *share = [ZFSettingItem itemWithIcon:@"MoreShare" title:@"分享" type:ZFSettingItemTypeArrow];
67 | share.operation = ^{
68 | UIViewController *helpVC = [[UIViewController alloc] init];
69 | helpVC.view.backgroundColor = [UIColor lightGrayColor];
70 | helpVC.title = @"分享";
71 | [weakSelf.navigationController pushViewController:helpVC animated:YES];
72 | };
73 |
74 | // 关于
75 | ZFSettingItem *about = [ZFSettingItem itemWithIcon:@"MoreAbout" title:@"关于" type:ZFSettingItemTypeArrow];
76 | about.operation = ^{
77 | UIViewController *helpVC = [[UIViewController alloc] init];
78 | helpVC.view.backgroundColor = [UIColor brownColor];
79 | helpVC.title = @"关于";
80 | [weakSelf.navigationController pushViewController:helpVC animated:YES];
81 | };
82 |
83 | ZFSettingGroup *group = [[ZFSettingGroup alloc] init];
84 | group.header = @"高级设置";
85 | group.footer = @"这是footer";
86 | group.items = @[ help, share , about];
87 | [_allGroups addObject:group];
88 | }
89 |
90 | @end
91 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
203 |
--------------------------------------------------------------------------------
/Setting/Setting.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | CC2CC64D1CA381A90028BBDD /* ZFBaseSettingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CC2CC6441CA381A90028BBDD /* ZFBaseSettingViewController.m */; };
11 | CC2CC64E1CA381A90028BBDD /* ZFSettingGroup.m in Sources */ = {isa = PBXBuildFile; fileRef = CC2CC6471CA381A90028BBDD /* ZFSettingGroup.m */; };
12 | CC2CC64F1CA381A90028BBDD /* ZFSettingItem.m in Sources */ = {isa = PBXBuildFile; fileRef = CC2CC6491CA381A90028BBDD /* ZFSettingItem.m */; };
13 | CC2CC6501CA381A90028BBDD /* ZFSettingCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CC2CC64C1CA381A90028BBDD /* ZFSettingCell.m */; };
14 | CC9523F31BADA07D0040FF08 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9523F21BADA07D0040FF08 /* main.m */; };
15 | CC9523F61BADA07D0040FF08 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9523F51BADA07D0040FF08 /* AppDelegate.m */; };
16 | CC9523FC1BADA07D0040FF08 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CC9523FA1BADA07D0040FF08 /* Main.storyboard */; };
17 | CC9524011BADA07D0040FF08 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CC9524001BADA07D0040FF08 /* Assets.xcassets */; };
18 | CC9524041BADA07D0040FF08 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CC9524021BADA07D0040FF08 /* LaunchScreen.storyboard */; };
19 | CC95240F1BADA07D0040FF08 /* SettingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CC95240E1BADA07D0040FF08 /* SettingTests.m */; };
20 | CC95241A1BADA07D0040FF08 /* SettingUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9524191BADA07D0040FF08 /* SettingUITests.m */; };
21 | CC9524781BADA90A0040FF08 /* ZFettingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9524741BADA90A0040FF08 /* ZFettingViewController.m */; };
22 | CC9524791BADA90A0040FF08 /* ZFPushNoticeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9524761BADA90A0040FF08 /* ZFPushNoticeViewController.m */; };
23 | /* End PBXBuildFile section */
24 |
25 | /* Begin PBXContainerItemProxy section */
26 | CC95240B1BADA07D0040FF08 /* PBXContainerItemProxy */ = {
27 | isa = PBXContainerItemProxy;
28 | containerPortal = CC9523E61BADA07D0040FF08 /* Project object */;
29 | proxyType = 1;
30 | remoteGlobalIDString = CC9523ED1BADA07D0040FF08;
31 | remoteInfo = Setting;
32 | };
33 | CC9524161BADA07D0040FF08 /* PBXContainerItemProxy */ = {
34 | isa = PBXContainerItemProxy;
35 | containerPortal = CC9523E61BADA07D0040FF08 /* Project object */;
36 | proxyType = 1;
37 | remoteGlobalIDString = CC9523ED1BADA07D0040FF08;
38 | remoteInfo = Setting;
39 | };
40 | /* End PBXContainerItemProxy section */
41 |
42 | /* Begin PBXFileReference section */
43 | CC2CC6431CA381A90028BBDD /* ZFBaseSettingViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZFBaseSettingViewController.h; sourceTree = ""; };
44 | CC2CC6441CA381A90028BBDD /* ZFBaseSettingViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZFBaseSettingViewController.m; sourceTree = ""; };
45 | CC2CC6461CA381A90028BBDD /* ZFSettingGroup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZFSettingGroup.h; sourceTree = ""; };
46 | CC2CC6471CA381A90028BBDD /* ZFSettingGroup.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZFSettingGroup.m; sourceTree = ""; };
47 | CC2CC6481CA381A90028BBDD /* ZFSettingItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZFSettingItem.h; sourceTree = ""; };
48 | CC2CC6491CA381A90028BBDD /* ZFSettingItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZFSettingItem.m; sourceTree = ""; };
49 | CC2CC64B1CA381A90028BBDD /* ZFSettingCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZFSettingCell.h; sourceTree = ""; };
50 | CC2CC64C1CA381A90028BBDD /* ZFSettingCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZFSettingCell.m; sourceTree = ""; };
51 | CC9523EE1BADA07D0040FF08 /* Setting.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Setting.app; sourceTree = BUILT_PRODUCTS_DIR; };
52 | CC9523F21BADA07D0040FF08 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
53 | CC9523F41BADA07D0040FF08 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
54 | CC9523F51BADA07D0040FF08 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
55 | CC9523FB1BADA07D0040FF08 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
56 | CC9524001BADA07D0040FF08 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
57 | CC9524031BADA07D0040FF08 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
58 | CC9524051BADA07D0040FF08 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
59 | CC95240A1BADA07D0040FF08 /* SettingTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SettingTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
60 | CC95240E1BADA07D0040FF08 /* SettingTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SettingTests.m; sourceTree = ""; };
61 | CC9524101BADA07D0040FF08 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
62 | CC9524151BADA07D0040FF08 /* SettingUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SettingUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
63 | CC9524191BADA07D0040FF08 /* SettingUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SettingUITests.m; sourceTree = ""; };
64 | CC95241B1BADA07D0040FF08 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
65 | CC9524741BADA90A0040FF08 /* ZFettingViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZFettingViewController.m; sourceTree = ""; };
66 | CC9524751BADA90A0040FF08 /* ZFPushNoticeViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZFPushNoticeViewController.h; sourceTree = ""; };
67 | CC9524761BADA90A0040FF08 /* ZFPushNoticeViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZFPushNoticeViewController.m; sourceTree = ""; };
68 | CC9524771BADA90A0040FF08 /* ZFSettingViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZFSettingViewController.h; sourceTree = ""; };
69 | /* End PBXFileReference section */
70 |
71 | /* Begin PBXFrameworksBuildPhase section */
72 | CC9523EB1BADA07D0040FF08 /* Frameworks */ = {
73 | isa = PBXFrameworksBuildPhase;
74 | buildActionMask = 2147483647;
75 | files = (
76 | );
77 | runOnlyForDeploymentPostprocessing = 0;
78 | };
79 | CC9524071BADA07D0040FF08 /* Frameworks */ = {
80 | isa = PBXFrameworksBuildPhase;
81 | buildActionMask = 2147483647;
82 | files = (
83 | );
84 | runOnlyForDeploymentPostprocessing = 0;
85 | };
86 | CC9524121BADA07D0040FF08 /* Frameworks */ = {
87 | isa = PBXFrameworksBuildPhase;
88 | buildActionMask = 2147483647;
89 | files = (
90 | );
91 | runOnlyForDeploymentPostprocessing = 0;
92 | };
93 | /* End PBXFrameworksBuildPhase section */
94 |
95 | /* Begin PBXGroup section */
96 | CC2CC6411CA381A90028BBDD /* ZFSetting */ = {
97 | isa = PBXGroup;
98 | children = (
99 | CC2CC6421CA381A90028BBDD /* Controller */,
100 | CC2CC6451CA381A90028BBDD /* Model */,
101 | CC2CC64A1CA381A90028BBDD /* View */,
102 | );
103 | name = ZFSetting;
104 | path = ../ZFSetting;
105 | sourceTree = SOURCE_ROOT;
106 | };
107 | CC2CC6421CA381A90028BBDD /* Controller */ = {
108 | isa = PBXGroup;
109 | children = (
110 | CC2CC6431CA381A90028BBDD /* ZFBaseSettingViewController.h */,
111 | CC2CC6441CA381A90028BBDD /* ZFBaseSettingViewController.m */,
112 | );
113 | path = Controller;
114 | sourceTree = "";
115 | };
116 | CC2CC6451CA381A90028BBDD /* Model */ = {
117 | isa = PBXGroup;
118 | children = (
119 | CC2CC6461CA381A90028BBDD /* ZFSettingGroup.h */,
120 | CC2CC6471CA381A90028BBDD /* ZFSettingGroup.m */,
121 | CC2CC6481CA381A90028BBDD /* ZFSettingItem.h */,
122 | CC2CC6491CA381A90028BBDD /* ZFSettingItem.m */,
123 | );
124 | path = Model;
125 | sourceTree = "";
126 | };
127 | CC2CC64A1CA381A90028BBDD /* View */ = {
128 | isa = PBXGroup;
129 | children = (
130 | CC2CC64B1CA381A90028BBDD /* ZFSettingCell.h */,
131 | CC2CC64C1CA381A90028BBDD /* ZFSettingCell.m */,
132 | );
133 | path = View;
134 | sourceTree = "";
135 | };
136 | CC9523E51BADA07D0040FF08 = {
137 | isa = PBXGroup;
138 | children = (
139 | CC9523F01BADA07D0040FF08 /* Setting */,
140 | CC95240D1BADA07D0040FF08 /* SettingTests */,
141 | CC9524181BADA07D0040FF08 /* SettingUITests */,
142 | CC9523EF1BADA07D0040FF08 /* Products */,
143 | );
144 | sourceTree = "";
145 | };
146 | CC9523EF1BADA07D0040FF08 /* Products */ = {
147 | isa = PBXGroup;
148 | children = (
149 | CC9523EE1BADA07D0040FF08 /* Setting.app */,
150 | CC95240A1BADA07D0040FF08 /* SettingTests.xctest */,
151 | CC9524151BADA07D0040FF08 /* SettingUITests.xctest */,
152 | );
153 | name = Products;
154 | sourceTree = "";
155 | };
156 | CC9523F01BADA07D0040FF08 /* Setting */ = {
157 | isa = PBXGroup;
158 | children = (
159 | CC2CC6411CA381A90028BBDD /* ZFSetting */,
160 | CC9523F41BADA07D0040FF08 /* AppDelegate.h */,
161 | CC9523F51BADA07D0040FF08 /* AppDelegate.m */,
162 | CC9524771BADA90A0040FF08 /* ZFSettingViewController.h */,
163 | CC9524741BADA90A0040FF08 /* ZFettingViewController.m */,
164 | CC9524751BADA90A0040FF08 /* ZFPushNoticeViewController.h */,
165 | CC9524761BADA90A0040FF08 /* ZFPushNoticeViewController.m */,
166 | CC9523FA1BADA07D0040FF08 /* Main.storyboard */,
167 | CC9524001BADA07D0040FF08 /* Assets.xcassets */,
168 | CC9524021BADA07D0040FF08 /* LaunchScreen.storyboard */,
169 | CC9524051BADA07D0040FF08 /* Info.plist */,
170 | CC9523F11BADA07D0040FF08 /* Supporting Files */,
171 | );
172 | path = Setting;
173 | sourceTree = "";
174 | };
175 | CC9523F11BADA07D0040FF08 /* Supporting Files */ = {
176 | isa = PBXGroup;
177 | children = (
178 | CC9523F21BADA07D0040FF08 /* main.m */,
179 | );
180 | name = "Supporting Files";
181 | sourceTree = "";
182 | };
183 | CC95240D1BADA07D0040FF08 /* SettingTests */ = {
184 | isa = PBXGroup;
185 | children = (
186 | CC95240E1BADA07D0040FF08 /* SettingTests.m */,
187 | CC9524101BADA07D0040FF08 /* Info.plist */,
188 | );
189 | path = SettingTests;
190 | sourceTree = "";
191 | };
192 | CC9524181BADA07D0040FF08 /* SettingUITests */ = {
193 | isa = PBXGroup;
194 | children = (
195 | CC9524191BADA07D0040FF08 /* SettingUITests.m */,
196 | CC95241B1BADA07D0040FF08 /* Info.plist */,
197 | );
198 | path = SettingUITests;
199 | sourceTree = "";
200 | };
201 | /* End PBXGroup section */
202 |
203 | /* Begin PBXNativeTarget section */
204 | CC9523ED1BADA07D0040FF08 /* Setting */ = {
205 | isa = PBXNativeTarget;
206 | buildConfigurationList = CC95241E1BADA07D0040FF08 /* Build configuration list for PBXNativeTarget "Setting" */;
207 | buildPhases = (
208 | CC9523EA1BADA07D0040FF08 /* Sources */,
209 | CC9523EB1BADA07D0040FF08 /* Frameworks */,
210 | CC9523EC1BADA07D0040FF08 /* Resources */,
211 | );
212 | buildRules = (
213 | );
214 | dependencies = (
215 | );
216 | name = Setting;
217 | productName = Setting;
218 | productReference = CC9523EE1BADA07D0040FF08 /* Setting.app */;
219 | productType = "com.apple.product-type.application";
220 | };
221 | CC9524091BADA07D0040FF08 /* SettingTests */ = {
222 | isa = PBXNativeTarget;
223 | buildConfigurationList = CC9524211BADA07D0040FF08 /* Build configuration list for PBXNativeTarget "SettingTests" */;
224 | buildPhases = (
225 | CC9524061BADA07D0040FF08 /* Sources */,
226 | CC9524071BADA07D0040FF08 /* Frameworks */,
227 | CC9524081BADA07D0040FF08 /* Resources */,
228 | );
229 | buildRules = (
230 | );
231 | dependencies = (
232 | CC95240C1BADA07D0040FF08 /* PBXTargetDependency */,
233 | );
234 | name = SettingTests;
235 | productName = SettingTests;
236 | productReference = CC95240A1BADA07D0040FF08 /* SettingTests.xctest */;
237 | productType = "com.apple.product-type.bundle.unit-test";
238 | };
239 | CC9524141BADA07D0040FF08 /* SettingUITests */ = {
240 | isa = PBXNativeTarget;
241 | buildConfigurationList = CC9524241BADA07D0040FF08 /* Build configuration list for PBXNativeTarget "SettingUITests" */;
242 | buildPhases = (
243 | CC9524111BADA07D0040FF08 /* Sources */,
244 | CC9524121BADA07D0040FF08 /* Frameworks */,
245 | CC9524131BADA07D0040FF08 /* Resources */,
246 | );
247 | buildRules = (
248 | );
249 | dependencies = (
250 | CC9524171BADA07D0040FF08 /* PBXTargetDependency */,
251 | );
252 | name = SettingUITests;
253 | productName = SettingUITests;
254 | productReference = CC9524151BADA07D0040FF08 /* SettingUITests.xctest */;
255 | productType = "com.apple.product-type.bundle.ui-testing";
256 | };
257 | /* End PBXNativeTarget section */
258 |
259 | /* Begin PBXProject section */
260 | CC9523E61BADA07D0040FF08 /* Project object */ = {
261 | isa = PBXProject;
262 | attributes = {
263 | LastUpgradeCheck = 0700;
264 | ORGANIZATIONNAME = "任子丰";
265 | TargetAttributes = {
266 | CC9523ED1BADA07D0040FF08 = {
267 | CreatedOnToolsVersion = 7.0;
268 | };
269 | CC9524091BADA07D0040FF08 = {
270 | CreatedOnToolsVersion = 7.0;
271 | TestTargetID = CC9523ED1BADA07D0040FF08;
272 | };
273 | CC9524141BADA07D0040FF08 = {
274 | CreatedOnToolsVersion = 7.0;
275 | TestTargetID = CC9523ED1BADA07D0040FF08;
276 | };
277 | };
278 | };
279 | buildConfigurationList = CC9523E91BADA07D0040FF08 /* Build configuration list for PBXProject "Setting" */;
280 | compatibilityVersion = "Xcode 3.2";
281 | developmentRegion = English;
282 | hasScannedForEncodings = 0;
283 | knownRegions = (
284 | en,
285 | Base,
286 | );
287 | mainGroup = CC9523E51BADA07D0040FF08;
288 | productRefGroup = CC9523EF1BADA07D0040FF08 /* Products */;
289 | projectDirPath = "";
290 | projectRoot = "";
291 | targets = (
292 | CC9523ED1BADA07D0040FF08 /* Setting */,
293 | CC9524091BADA07D0040FF08 /* SettingTests */,
294 | CC9524141BADA07D0040FF08 /* SettingUITests */,
295 | );
296 | };
297 | /* End PBXProject section */
298 |
299 | /* Begin PBXResourcesBuildPhase section */
300 | CC9523EC1BADA07D0040FF08 /* Resources */ = {
301 | isa = PBXResourcesBuildPhase;
302 | buildActionMask = 2147483647;
303 | files = (
304 | CC9524041BADA07D0040FF08 /* LaunchScreen.storyboard in Resources */,
305 | CC9524011BADA07D0040FF08 /* Assets.xcassets in Resources */,
306 | CC9523FC1BADA07D0040FF08 /* Main.storyboard in Resources */,
307 | );
308 | runOnlyForDeploymentPostprocessing = 0;
309 | };
310 | CC9524081BADA07D0040FF08 /* Resources */ = {
311 | isa = PBXResourcesBuildPhase;
312 | buildActionMask = 2147483647;
313 | files = (
314 | );
315 | runOnlyForDeploymentPostprocessing = 0;
316 | };
317 | CC9524131BADA07D0040FF08 /* Resources */ = {
318 | isa = PBXResourcesBuildPhase;
319 | buildActionMask = 2147483647;
320 | files = (
321 | );
322 | runOnlyForDeploymentPostprocessing = 0;
323 | };
324 | /* End PBXResourcesBuildPhase section */
325 |
326 | /* Begin PBXSourcesBuildPhase section */
327 | CC9523EA1BADA07D0040FF08 /* Sources */ = {
328 | isa = PBXSourcesBuildPhase;
329 | buildActionMask = 2147483647;
330 | files = (
331 | CC2CC6501CA381A90028BBDD /* ZFSettingCell.m in Sources */,
332 | CC2CC64F1CA381A90028BBDD /* ZFSettingItem.m in Sources */,
333 | CC9523F61BADA07D0040FF08 /* AppDelegate.m in Sources */,
334 | CC9524781BADA90A0040FF08 /* ZFettingViewController.m in Sources */,
335 | CC2CC64E1CA381A90028BBDD /* ZFSettingGroup.m in Sources */,
336 | CC9524791BADA90A0040FF08 /* ZFPushNoticeViewController.m in Sources */,
337 | CC2CC64D1CA381A90028BBDD /* ZFBaseSettingViewController.m in Sources */,
338 | CC9523F31BADA07D0040FF08 /* main.m in Sources */,
339 | );
340 | runOnlyForDeploymentPostprocessing = 0;
341 | };
342 | CC9524061BADA07D0040FF08 /* Sources */ = {
343 | isa = PBXSourcesBuildPhase;
344 | buildActionMask = 2147483647;
345 | files = (
346 | CC95240F1BADA07D0040FF08 /* SettingTests.m in Sources */,
347 | );
348 | runOnlyForDeploymentPostprocessing = 0;
349 | };
350 | CC9524111BADA07D0040FF08 /* Sources */ = {
351 | isa = PBXSourcesBuildPhase;
352 | buildActionMask = 2147483647;
353 | files = (
354 | CC95241A1BADA07D0040FF08 /* SettingUITests.m in Sources */,
355 | );
356 | runOnlyForDeploymentPostprocessing = 0;
357 | };
358 | /* End PBXSourcesBuildPhase section */
359 |
360 | /* Begin PBXTargetDependency section */
361 | CC95240C1BADA07D0040FF08 /* PBXTargetDependency */ = {
362 | isa = PBXTargetDependency;
363 | target = CC9523ED1BADA07D0040FF08 /* Setting */;
364 | targetProxy = CC95240B1BADA07D0040FF08 /* PBXContainerItemProxy */;
365 | };
366 | CC9524171BADA07D0040FF08 /* PBXTargetDependency */ = {
367 | isa = PBXTargetDependency;
368 | target = CC9523ED1BADA07D0040FF08 /* Setting */;
369 | targetProxy = CC9524161BADA07D0040FF08 /* PBXContainerItemProxy */;
370 | };
371 | /* End PBXTargetDependency section */
372 |
373 | /* Begin PBXVariantGroup section */
374 | CC9523FA1BADA07D0040FF08 /* Main.storyboard */ = {
375 | isa = PBXVariantGroup;
376 | children = (
377 | CC9523FB1BADA07D0040FF08 /* Base */,
378 | );
379 | name = Main.storyboard;
380 | sourceTree = "";
381 | };
382 | CC9524021BADA07D0040FF08 /* LaunchScreen.storyboard */ = {
383 | isa = PBXVariantGroup;
384 | children = (
385 | CC9524031BADA07D0040FF08 /* Base */,
386 | );
387 | name = LaunchScreen.storyboard;
388 | sourceTree = "";
389 | };
390 | /* End PBXVariantGroup section */
391 |
392 | /* Begin XCBuildConfiguration section */
393 | CC95241C1BADA07D0040FF08 /* Debug */ = {
394 | isa = XCBuildConfiguration;
395 | buildSettings = {
396 | ALWAYS_SEARCH_USER_PATHS = NO;
397 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
398 | CLANG_CXX_LIBRARY = "libc++";
399 | CLANG_ENABLE_MODULES = YES;
400 | CLANG_ENABLE_OBJC_ARC = YES;
401 | CLANG_WARN_BOOL_CONVERSION = YES;
402 | CLANG_WARN_CONSTANT_CONVERSION = YES;
403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
404 | CLANG_WARN_EMPTY_BODY = YES;
405 | CLANG_WARN_ENUM_CONVERSION = YES;
406 | CLANG_WARN_INT_CONVERSION = YES;
407 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
408 | CLANG_WARN_UNREACHABLE_CODE = YES;
409 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
410 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
411 | COPY_PHASE_STRIP = NO;
412 | DEBUG_INFORMATION_FORMAT = dwarf;
413 | ENABLE_STRICT_OBJC_MSGSEND = YES;
414 | ENABLE_TESTABILITY = YES;
415 | GCC_C_LANGUAGE_STANDARD = gnu99;
416 | GCC_DYNAMIC_NO_PIC = NO;
417 | GCC_NO_COMMON_BLOCKS = YES;
418 | GCC_OPTIMIZATION_LEVEL = 0;
419 | GCC_PREPROCESSOR_DEFINITIONS = (
420 | "DEBUG=1",
421 | "$(inherited)",
422 | );
423 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
424 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
425 | GCC_WARN_UNDECLARED_SELECTOR = YES;
426 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
427 | GCC_WARN_UNUSED_FUNCTION = YES;
428 | GCC_WARN_UNUSED_VARIABLE = YES;
429 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
430 | MTL_ENABLE_DEBUG_INFO = YES;
431 | ONLY_ACTIVE_ARCH = YES;
432 | SDKROOT = iphoneos;
433 | };
434 | name = Debug;
435 | };
436 | CC95241D1BADA07D0040FF08 /* Release */ = {
437 | isa = XCBuildConfiguration;
438 | buildSettings = {
439 | ALWAYS_SEARCH_USER_PATHS = NO;
440 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
441 | CLANG_CXX_LIBRARY = "libc++";
442 | CLANG_ENABLE_MODULES = YES;
443 | CLANG_ENABLE_OBJC_ARC = YES;
444 | CLANG_WARN_BOOL_CONVERSION = YES;
445 | CLANG_WARN_CONSTANT_CONVERSION = YES;
446 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
447 | CLANG_WARN_EMPTY_BODY = YES;
448 | CLANG_WARN_ENUM_CONVERSION = YES;
449 | CLANG_WARN_INT_CONVERSION = YES;
450 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
451 | CLANG_WARN_UNREACHABLE_CODE = YES;
452 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
453 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
454 | COPY_PHASE_STRIP = NO;
455 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
456 | ENABLE_NS_ASSERTIONS = NO;
457 | ENABLE_STRICT_OBJC_MSGSEND = YES;
458 | GCC_C_LANGUAGE_STANDARD = gnu99;
459 | GCC_NO_COMMON_BLOCKS = YES;
460 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
461 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
462 | GCC_WARN_UNDECLARED_SELECTOR = YES;
463 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
464 | GCC_WARN_UNUSED_FUNCTION = YES;
465 | GCC_WARN_UNUSED_VARIABLE = YES;
466 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
467 | MTL_ENABLE_DEBUG_INFO = NO;
468 | SDKROOT = iphoneos;
469 | VALIDATE_PRODUCT = YES;
470 | };
471 | name = Release;
472 | };
473 | CC95241F1BADA07D0040FF08 /* Debug */ = {
474 | isa = XCBuildConfiguration;
475 | buildSettings = {
476 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
477 | INFOPLIST_FILE = Setting/Info.plist;
478 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
480 | PRODUCT_BUNDLE_IDENTIFIER = zifeng.Setting;
481 | PRODUCT_NAME = "$(TARGET_NAME)";
482 | };
483 | name = Debug;
484 | };
485 | CC9524201BADA07D0040FF08 /* Release */ = {
486 | isa = XCBuildConfiguration;
487 | buildSettings = {
488 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
489 | INFOPLIST_FILE = Setting/Info.plist;
490 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
491 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
492 | PRODUCT_BUNDLE_IDENTIFIER = zifeng.Setting;
493 | PRODUCT_NAME = "$(TARGET_NAME)";
494 | };
495 | name = Release;
496 | };
497 | CC9524221BADA07D0040FF08 /* Debug */ = {
498 | isa = XCBuildConfiguration;
499 | buildSettings = {
500 | BUNDLE_LOADER = "$(TEST_HOST)";
501 | INFOPLIST_FILE = SettingTests/Info.plist;
502 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
503 | PRODUCT_BUNDLE_IDENTIFIER = zifeng.SettingTests;
504 | PRODUCT_NAME = "$(TARGET_NAME)";
505 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Setting.app/Setting";
506 | };
507 | name = Debug;
508 | };
509 | CC9524231BADA07D0040FF08 /* Release */ = {
510 | isa = XCBuildConfiguration;
511 | buildSettings = {
512 | BUNDLE_LOADER = "$(TEST_HOST)";
513 | INFOPLIST_FILE = SettingTests/Info.plist;
514 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
515 | PRODUCT_BUNDLE_IDENTIFIER = zifeng.SettingTests;
516 | PRODUCT_NAME = "$(TARGET_NAME)";
517 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Setting.app/Setting";
518 | };
519 | name = Release;
520 | };
521 | CC9524251BADA07D0040FF08 /* Debug */ = {
522 | isa = XCBuildConfiguration;
523 | buildSettings = {
524 | INFOPLIST_FILE = SettingUITests/Info.plist;
525 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
526 | PRODUCT_BUNDLE_IDENTIFIER = zifeng.SettingUITests;
527 | PRODUCT_NAME = "$(TARGET_NAME)";
528 | TEST_TARGET_NAME = Setting;
529 | USES_XCTRUNNER = YES;
530 | };
531 | name = Debug;
532 | };
533 | CC9524261BADA07D0040FF08 /* Release */ = {
534 | isa = XCBuildConfiguration;
535 | buildSettings = {
536 | INFOPLIST_FILE = SettingUITests/Info.plist;
537 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
538 | PRODUCT_BUNDLE_IDENTIFIER = zifeng.SettingUITests;
539 | PRODUCT_NAME = "$(TARGET_NAME)";
540 | TEST_TARGET_NAME = Setting;
541 | USES_XCTRUNNER = YES;
542 | };
543 | name = Release;
544 | };
545 | /* End XCBuildConfiguration section */
546 |
547 | /* Begin XCConfigurationList section */
548 | CC9523E91BADA07D0040FF08 /* Build configuration list for PBXProject "Setting" */ = {
549 | isa = XCConfigurationList;
550 | buildConfigurations = (
551 | CC95241C1BADA07D0040FF08 /* Debug */,
552 | CC95241D1BADA07D0040FF08 /* Release */,
553 | );
554 | defaultConfigurationIsVisible = 0;
555 | defaultConfigurationName = Release;
556 | };
557 | CC95241E1BADA07D0040FF08 /* Build configuration list for PBXNativeTarget "Setting" */ = {
558 | isa = XCConfigurationList;
559 | buildConfigurations = (
560 | CC95241F1BADA07D0040FF08 /* Debug */,
561 | CC9524201BADA07D0040FF08 /* Release */,
562 | );
563 | defaultConfigurationIsVisible = 0;
564 | defaultConfigurationName = Release;
565 | };
566 | CC9524211BADA07D0040FF08 /* Build configuration list for PBXNativeTarget "SettingTests" */ = {
567 | isa = XCConfigurationList;
568 | buildConfigurations = (
569 | CC9524221BADA07D0040FF08 /* Debug */,
570 | CC9524231BADA07D0040FF08 /* Release */,
571 | );
572 | defaultConfigurationIsVisible = 0;
573 | defaultConfigurationName = Release;
574 | };
575 | CC9524241BADA07D0040FF08 /* Build configuration list for PBXNativeTarget "SettingUITests" */ = {
576 | isa = XCConfigurationList;
577 | buildConfigurations = (
578 | CC9524251BADA07D0040FF08 /* Debug */,
579 | CC9524261BADA07D0040FF08 /* Release */,
580 | );
581 | defaultConfigurationIsVisible = 0;
582 | defaultConfigurationName = Release;
583 | };
584 | /* End XCConfigurationList section */
585 | };
586 | rootObject = CC9523E61BADA07D0040FF08 /* Project object */;
587 | }
588 |
--------------------------------------------------------------------------------