Skip to content

Commit 7b31bb2

Browse files
committed
working on pod
1 parent 04ce24f commit 7b31bb2

5 files changed

Lines changed: 132 additions & 2 deletions

File tree

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
#
2+
# Be sure to run `pod spec lint RKSwipeBetweenViewControllers.podspec' to ensure this is a
3+
# valid spec and to remove all comments including this before submitting the spec.
4+
#
5+
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
6+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7+
#
8+
9+
Pod::Spec.new do |s|
10+
11+
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
12+
#
13+
# These will help people to find your library, and whilst it
14+
# can feel like a chore to fill in it's definitely to your advantage. The
15+
# summary should be tweet-length, and the description more in depth.
16+
#
17+
18+
s.name = "RKSwipeBetweenViewControllers"
19+
s.version = "0.0.1"
20+
s.summary = "Swipe between ViewControllers like in the Spotify or Twitter app with an interactive Segmented Control in the Navigation Bar"
21+
22+
s.description = "Similar to Twitter and Spotify, swipe between view controllers and the tabs in the navigation bar changes. -twitter, -spotify, -swipe, -navigation bar, -navigationbar, -between, -view controllers, -viewcontroller, -tab"
23+
24+
s.homepage = "https://github.com/cwRichardKim/RKSwipeBetweenViewControllers"
25+
s.screenshots = "http://i.imgur.com/zEsm542.gif"
26+
27+
28+
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
29+
#
30+
# Licensing your code is important. See http://choosealicense.com for more info.
31+
# CocoaPods will detect a license file if there is a named LICENSE*
32+
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
33+
#
34+
35+
s.license = "MIT (example)"
36+
# s.license = { :type => "MIT", :file => "LICENSE" }
37+
38+
39+
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
40+
#
41+
# Specify the authors of the library, with email addresses. Email addresses
42+
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
43+
# accepts just a name if you'd rather not provide an email address.
44+
#
45+
# Specify a social_media_url where others can refer to, for example a twitter
46+
# profile URL.
47+
#
48+
49+
s.author = "cwrichardkim"
50+
# s.authors = { "cwrichardkim93" => "cwrichardkim93@gmail.com" }
51+
s.social_media_url = "http://twitter.com/cwrichardkim"
52+
53+
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
54+
#
55+
# If this Pod runs only on iOS or OS X, then specify the platform and
56+
# the deployment target. You can optionally include the target after the platform.
57+
#
58+
59+
# s.platform = :ios
60+
s.platform = :ios, "7.0"
61+
62+
# When using multiple platforms
63+
# s.ios.deployment_target = "5.0"
64+
# s.osx.deployment_target = "10.7"
65+
66+
67+
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
68+
#
69+
# Specify the location from where the source should be retrieved.
70+
# Supports git, hg, bzr, svn and HTTP.
71+
#
72+
73+
s.source = { :git => "https://github.com/cwRichardKim/RKSwipeBetweenViewControllers", :tag => s.version.to_s }
74+
75+
76+
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
77+
#
78+
# CocoaPods is smart about how it includes source code. For source files
79+
# giving a folder will include any h, m, mm, c & cpp files. For header
80+
# files it will include any header in the folder.
81+
# Not including the public_header_files will make all headers public.
82+
#
83+
84+
s.source_files = "Classes", "Classes/**/*.{h,m}"
85+
s.exclude_files = "Classes/Exclude"
86+
87+
# s.public_header_files = "Classes/**/*.h"
88+
89+
90+
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
91+
#
92+
# A list of resources included with the Pod. These are copied into the
93+
# target bundle with a build phase script. Anything else will be cleaned.
94+
# You can preserve files from being cleaned, please don't preserve
95+
# non-essential files like tests, examples and documentation.
96+
#
97+
98+
# s.resource = "icon.png"
99+
# s.resources = "Resources/*.png"
100+
101+
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
102+
103+
104+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
105+
#
106+
# Link your library with frameworks, or libraries. Libraries do not include
107+
# the lib prefix of their name.
108+
#
109+
110+
# s.framework = "SomeFramework"
111+
# s.frameworks = "SomeFramework", "AnotherFramework"
112+
113+
# s.library = "iconv"
114+
# s.libraries = "iconv", "xml2"
115+
116+
117+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
118+
#
119+
# If your library depends on compiler flags you can set them in the xcconfig hash
120+
# where they will only apply to your library. If you depend on other Podspecs
121+
# you can include multiple dependencies to ensure it works.
122+
123+
# s.requires_arc = true
124+
125+
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
126+
# s.dependency "JSONKit", "~> 1.4"
127+
128+
end

RKSwipeBetweenViewControllers.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@
456456
992F23BC1985BD6400320CAA /* Release */,
457457
);
458458
defaultConfigurationIsVisible = 0;
459+
defaultConfigurationName = Release;
459460
};
460461
992F23BD1985BD6400320CAA /* Build configuration list for PBXNativeTarget "RKSwipeBetweenViewControllersTests" */ = {
461462
isa = XCConfigurationList;
@@ -464,6 +465,7 @@
464465
992F23BF1985BD6400320CAA /* Release */,
465466
);
466467
defaultConfigurationIsVisible = 0;
468+
defaultConfigurationName = Release;
467469
};
468470
/* End XCConfigurationList section */
469471
};

RKSwipeBetweenViewControllers/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
3131
demo2.view.backgroundColor = [UIColor whiteColor];
3232
demo3.view.backgroundColor = [UIColor grayColor];
3333
demo4.view.backgroundColor = [UIColor orangeColor];
34-
[navigationController.viewControllerArray addObjectsFromArray:@[demo,demo2,demo3,demo4]];
34+
[navigationController.viewControllerArray addObjectsFromArray:@[demo,demo2,demo3/*,demo4*/]];
3535

3636
self.window.rootViewController = navigationController;
3737
[self.window makeKeyAndVisible];

RKSwipeBetweenViewControllers/RKSwipeBetweenViewControllers-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
20+
<string>0.0.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)