Skip to content

Commit 4334464

Browse files
committed
project
1 parent 727145e commit 4334464

File tree

71 files changed

+1822
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1822
-188
lines changed

CYLTabBarController.xcodeproj/project.pbxproj

+156-50
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges</key>
6+
<true/>
7+
<key>SnapshotAutomaticallyBeforeSignificantChanges</key>
8+
<true/>
9+
</dict>
10+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0630"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "9AE942731BDC91B800354519"
18+
BuildableName = "CYLTabBarController.app"
19+
BlueprintName = "CYLTabBarController"
20+
ReferencedContainer = "container:CYLTabBarController.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "9AE9428C1BDC91B900354519"
32+
BuildableName = "CYLTabBarControllerTests.xctest"
33+
BlueprintName = "CYLTabBarControllerTests"
34+
ReferencedContainer = "container:CYLTabBarController.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
41+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42+
shouldUseLaunchSchemeArgsEnv = "YES"
43+
buildConfiguration = "Debug">
44+
<Testables>
45+
<TestableReference
46+
skipped = "NO">
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "9AE9428C1BDC91B900354519"
50+
BuildableName = "CYLTabBarControllerTests.xctest"
51+
BlueprintName = "CYLTabBarControllerTests"
52+
ReferencedContainer = "container:CYLTabBarController.xcodeproj">
53+
</BuildableReference>
54+
</TestableReference>
55+
</Testables>
56+
<MacroExpansion>
57+
<BuildableReference
58+
BuildableIdentifier = "primary"
59+
BlueprintIdentifier = "9AE942731BDC91B800354519"
60+
BuildableName = "CYLTabBarController.app"
61+
BlueprintName = "CYLTabBarController"
62+
ReferencedContainer = "container:CYLTabBarController.xcodeproj">
63+
</BuildableReference>
64+
</MacroExpansion>
65+
</TestAction>
66+
<LaunchAction
67+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
68+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
69+
launchStyle = "0"
70+
useCustomWorkingDirectory = "NO"
71+
buildConfiguration = "Debug"
72+
ignoresPersistentStateOnLaunch = "NO"
73+
debugDocumentVersioning = "YES"
74+
allowLocationSimulation = "YES">
75+
<BuildableProductRunnable
76+
runnableDebuggingMode = "0">
77+
<BuildableReference
78+
BuildableIdentifier = "primary"
79+
BlueprintIdentifier = "9AE942731BDC91B800354519"
80+
BuildableName = "CYLTabBarController.app"
81+
BlueprintName = "CYLTabBarController"
82+
ReferencedContainer = "container:CYLTabBarController.xcodeproj">
83+
</BuildableReference>
84+
</BuildableProductRunnable>
85+
<AdditionalOptions>
86+
</AdditionalOptions>
87+
</LaunchAction>
88+
<ProfileAction
89+
shouldUseLaunchSchemeArgsEnv = "YES"
90+
savedToolIdentifier = ""
91+
useCustomWorkingDirectory = "NO"
92+
buildConfiguration = "Release"
93+
debugDocumentVersioning = "YES">
94+
<BuildableProductRunnable
95+
runnableDebuggingMode = "0">
96+
<BuildableReference
97+
BuildableIdentifier = "primary"
98+
BlueprintIdentifier = "9AE942731BDC91B800354519"
99+
BuildableName = "CYLTabBarController.app"
100+
BlueprintName = "CYLTabBarController"
101+
ReferencedContainer = "container:CYLTabBarController.xcodeproj">
102+
</BuildableReference>
103+
</BuildableProductRunnable>
104+
</ProfileAction>
105+
<AnalyzeAction
106+
buildConfiguration = "Debug">
107+
</AnalyzeAction>
108+
<ArchiveAction
109+
buildConfiguration = "Release"
110+
revealArchiveInOrganizer = "YES">
111+
</ArchiveAction>
112+
</Scheme>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>CYLTabBarController.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>9AE942731BDC91B800354519</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
<key>9AE9428C1BDC91B900354519</key>
21+
<dict>
22+
<key>primary</key>
23+
<true/>
24+
</dict>
25+
</dict>
26+
</dict>
27+
</plist>

CYLTabBarController/AppDelegate.h

-17
This file was deleted.

CYLTabBarController/AppDelegate.m

-45
This file was deleted.

CYLTabBarController/CYLPlusButton.h

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//
2+
// CYLPlusButton.h
3+
// CYLCustomTabBarDemo
4+
//
5+
// Created by 微博@iOS程序犭袁 (http://weibo.com/luohanchenyilong/) on 10/20/15.
6+
// Copyright © 2015 https://github.com/ChenYilong . All rights reserved.
7+
//
8+
@import Foundation;
9+
#import <UIKit/UIKit.h>
10+
11+
@protocol CYLPlusButtonSubclassing
12+
@required
13+
+ (instancetype)plusButton;
14+
@optional
15+
+ (NSUInteger)indexOfPlusButtonInTabBar;
16+
+ (CGFloat)multiplerInCenterY;
17+
@end
18+
19+
@class CYLTabBar;
20+
21+
extern UIButton<CYLPlusButtonSubclassing> *CYLExternPushlishButton;
22+
23+
@interface CYLPlusButton : UIButton
24+
+ (void)registerSubclass;
25+
@end

CYLTabBarController/CYLPlusButton.m

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//
2+
// CYLPlusButton.m
3+
// CYLCustomTabBarDemo
4+
//
5+
// Created by 微博@iOS程序犭袁 (http://weibo.com/luohanchenyilong/) on 10/20/15.
6+
// Copyright © 2015 https://github.com/ChenYilong . All rights reserved.
7+
//
8+
9+
#import "CYLPlusButton.h"
10+
#import "CYLTabBarController.h"
11+
12+
UIButton<CYLPlusButtonSubclassing> *CYLExternPushlishButton = nil;
13+
@interface CYLPlusButton ()<UIActionSheetDelegate>
14+
15+
@end
16+
17+
@implementation CYLPlusButton
18+
19+
#pragma mark -
20+
#pragma mark - Private Methods
21+
22+
+ (void)registerSubclass {
23+
if ([self conformsToProtocol:@protocol(CYLPlusButtonSubclassing)]) {
24+
Class<CYLPlusButtonSubclassing> class = self;
25+
CYLExternPushlishButton = [class plusButton];
26+
}
27+
}
28+
29+
@end

CYLTabBarController/CYLTabBar.h

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// CYLTabBar.h
3+
// CYLCustomTabBarDemo
4+
//
5+
// Created by 微博@iOS程序犭袁 (http://weibo.com/luohanchenyilong/) on 10/20/15.
6+
// Copyright © 2015 https://github.com/ChenYilong . All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
#import "CYLTabBarController.h"
11+
#import "CYLPlusButton.h"
12+
13+
@interface CYLTabBar : UITabBar
14+
@end

0 commit comments

Comments
 (0)