Skip to content

Commit 8ca28a6

Browse files
Updated for Cocoapods and iOS 7
1 parent b1bb5f1 commit 8ca28a6

Some content is hidden

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

45 files changed

+312
-23
lines changed

.DS_Store

3 KB
Binary file not shown.

Classes/M13Checkbox.m

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ - (id)initWithFrame:(CGRect)frame
161161
self = [super initWithFrame:frame];
162162
if (self) {
163163
// Initialization code
164-
_flat = NO;
165-
_strokeColor = [UIColor colorWithRed: 0.167 green: 0.198 blue: 0.429 alpha: 1];
164+
_flat = YES;
165+
_strokeColor = [UIColor colorWithRed:0.02 green:0.47 blue:1 alpha:1];
166166
_strokeWidth = kBoxStrokeWidth * self.frame.size.height;
167-
_checkColor = [UIColor colorWithRed:0.0 green:0.129 blue:0.252 alpha:1.0];
168-
_tintColor = [UIColor colorWithRed: 0.616 green: 0.82 blue: 0.982 alpha: 1];
169-
_uncheckedColor = [UIColor colorWithRed:0.925 green:0.925 blue:0.925 alpha:1.0];
167+
_checkColor = [UIColor colorWithRed:0.02 green:0.47 blue:1 alpha:1];
168+
_tintColor = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0];
169+
_uncheckedColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0];
170170
_radius = kBoxRadius * self.frame.size.height;
171171
_checkAlignment = M13CheckboxAlignmentRight;
172172
_checkState = M13CheckboxStateUnchecked;
@@ -197,12 +197,12 @@ - (id)initWithCoder:(NSCoder *)aDecoder
197197
self = [super initWithCoder:aDecoder];
198198
if (self) {
199199
// Initialization code
200-
_flat = NO;
201-
_strokeColor = [UIColor colorWithRed: 0.167 green: 0.198 blue: 0.429 alpha: 1];
200+
_flat = YES;
201+
_strokeColor = [UIColor colorWithRed:0.02 green:0.47 blue:1 alpha:1];
202202
_strokeWidth = kBoxStrokeWidth * self.frame.size.height;
203-
_checkColor = [UIColor colorWithRed:0.0 green:0.129 blue:0.252 alpha:1.0];
204-
_tintColor = [UIColor colorWithRed: 0.616 green: 0.82 blue: 0.982 alpha: 1];
205-
_uncheckedColor = [UIColor colorWithRed:0.925 green:0.925 blue:0.925 alpha:1.0];
203+
_checkColor = [UIColor colorWithRed:0.02 green:0.47 blue:1 alpha:1];
204+
_tintColor = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0];
205+
_uncheckedColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0];
206206
_radius = kBoxRadius * self.frame.size.height;
207207
_checkAlignment = M13CheckboxAlignmentRight;
208208
_checkState = M13CheckboxStateUnchecked;

M13Checkbox.podspec

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Pod::Spec.new do |s|
2+
s.name = "M13Checkbox"
3+
s.version = "1.0.0"
4+
s.summary = "A customizable checkbox for iOS that mimics the checkbox found on OS X, and Safari."
5+
6+
s.description = <<-DESC
7+
A customizable checkbox for iOS that mimics the checkbox found on OS X, and Safari.
8+
DESC
9+
10+
s.homepage = "https://github.com/Marxon13/M13Checkbox"
11+
s.license = {:type => 'MIT',
12+
:text => <<-LICENSE
13+
Copyright (c) 2013 Brandon McQuilkin
14+
15+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
16+
"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
17+
the following conditions:
18+
19+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
20+
21+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+
23+
LICENSE
24+
}
25+
26+
27+
s.author = { "Brandon McQuilkin" => "[email protected]" }
28+
29+
s.platform = :ios, '7.0'
30+
31+
s.source = { :git => "https://github.com/Marxon13/M13Checkbox.git", :tag => "v1.0.0"}
32+
33+
s.source_files = 'Classes/*'
34+
35+
s.frameworks = 'Foundation', 'UIKit', 'CoreGraphics'
36+
37+
s.requires_arc = true
38+
end

M13Checkbox/M13Checkbox.xcodeproj/project.pbxproj renamed to M13Checkbox.xcodeproj/project.pbxproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
CA6976891898A400008B576C /* M13Checkbox.m in Sources */ = {isa = PBXBuildFile; fileRef = CA6976881898A400008B576C /* M13Checkbox.m */; };
1011
CAFF137A169139E8005B0C2B /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CAFF1379169139E8005B0C2B /* UIKit.framework */; };
1112
CAFF137C169139E8005B0C2B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CAFF137B169139E8005B0C2B /* Foundation.framework */; };
1213
CAFF137E169139E8005B0C2B /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CAFF137D169139E8005B0C2B /* CoreGraphics.framework */; };
@@ -19,10 +20,11 @@
1920
CAFF1393169139E8005B0C2B /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAFF1392169139E8005B0C2B /* ViewController.m */; };
2021
CAFF1396169139E8005B0C2B /* ViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = CAFF1394169139E8005B0C2B /* ViewController_iPhone.xib */; };
2122
CAFF1399169139E8005B0C2B /* ViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = CAFF1397169139E8005B0C2B /* ViewController_iPad.xib */; };
22-
CAFF13A2169139F1005B0C2B /* M13Checkbox.m in Sources */ = {isa = PBXBuildFile; fileRef = CAFF13A1169139F1005B0C2B /* M13Checkbox.m */; };
2323
/* End PBXBuildFile section */
2424

2525
/* Begin PBXFileReference section */
26+
CA6976871898A400008B576C /* M13Checkbox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = M13Checkbox.h; path = Classes/M13Checkbox.h; sourceTree = SOURCE_ROOT; };
27+
CA6976881898A400008B576C /* M13Checkbox.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = M13Checkbox.m; path = Classes/M13Checkbox.m; sourceTree = SOURCE_ROOT; };
2628
CAFF1375169139E8005B0C2B /* M13Checkbox.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = M13Checkbox.app; sourceTree = BUILT_PRODUCTS_DIR; };
2729
CAFF1379169139E8005B0C2B /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
2830
CAFF137B169139E8005B0C2B /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
@@ -40,8 +42,6 @@
4042
CAFF1392169139E8005B0C2B /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
4143
CAFF1395169139E8005B0C2B /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController_iPhone.xib; sourceTree = "<group>"; };
4244
CAFF1398169139E8005B0C2B /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController_iPad.xib; sourceTree = "<group>"; };
43-
CAFF13A0169139F1005B0C2B /* M13Checkbox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = M13Checkbox.h; sourceTree = "<group>"; };
44-
CAFF13A1169139F1005B0C2B /* M13Checkbox.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = M13Checkbox.m; sourceTree = "<group>"; };
4545
/* End PBXFileReference section */
4646

4747
/* Begin PBXFrameworksBuildPhase section */
@@ -117,8 +117,8 @@
117117
CAFF139F169139F1005B0C2B /* Classes */ = {
118118
isa = PBXGroup;
119119
children = (
120-
CAFF13A0169139F1005B0C2B /* M13Checkbox.h */,
121-
CAFF13A1169139F1005B0C2B /* M13Checkbox.m */,
120+
CA6976871898A400008B576C /* M13Checkbox.h */,
121+
CA6976881898A400008B576C /* M13Checkbox.m */,
122122
);
123123
name = Classes;
124124
path = ../../Classes;
@@ -191,10 +191,10 @@
191191
isa = PBXSourcesBuildPhase;
192192
buildActionMask = 2147483647;
193193
files = (
194+
CA6976891898A400008B576C /* M13Checkbox.m in Sources */,
194195
CAFF1386169139E8005B0C2B /* main.m in Sources */,
195196
CAFF138A169139E8005B0C2B /* AppDelegate.m in Sources */,
196197
CAFF1393169139E8005B0C2B /* ViewController.m in Sources */,
197-
CAFF13A2169139F1005B0C2B /* M13Checkbox.m in Sources */,
198198
);
199199
runOnlyForDeploymentPostprocessing = 0;
200200
};
@@ -321,6 +321,7 @@
321321
CAFF139E169139E8005B0C2B /* Release */,
322322
);
323323
defaultConfigurationIsVisible = 0;
324+
defaultConfigurationName = Release;
324325
};
325326
/* End XCConfigurationList section */
326327
};

M13Checkbox.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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>IDESourceControlProjectFavoriteDictionaryKey</key>
6+
<false/>
7+
<key>IDESourceControlProjectIdentifier</key>
8+
<string>61765B3A-8071-4A35-BED1-E95B367CDBA2</string>
9+
<key>IDESourceControlProjectName</key>
10+
<string>M13Checkbox</string>
11+
<key>IDESourceControlProjectOriginsDictionary</key>
12+
<dict>
13+
<key>F9B17C9E-1636-410B-B678-E77EBB00AB74</key>
14+
<string>https://github.com/Marxon13/M13Checkbox.git</string>
15+
</dict>
16+
<key>IDESourceControlProjectPath</key>
17+
<string>M13Checkbox.xcworkspace</string>
18+
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
19+
<dict>
20+
<key>F9B17C9E-1636-410B-B678-E77EBB00AB74</key>
21+
<string>..</string>
22+
</dict>
23+
<key>IDESourceControlProjectURL</key>
24+
<string>https://github.com/Marxon13/M13Checkbox.git</string>
25+
<key>IDESourceControlProjectVersion</key>
26+
<integer>110</integer>
27+
<key>IDESourceControlProjectWCCIdentifier</key>
28+
<string>F9B17C9E-1636-410B-B678-E77EBB00AB74</string>
29+
<key>IDESourceControlProjectWCConfigurations</key>
30+
<array>
31+
<dict>
32+
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
33+
<string>public.vcs.git</string>
34+
<key>IDESourceControlWCCIdentifierKey</key>
35+
<string>F9B17C9E-1636-410B-B678-E77EBB00AB74</string>
36+
<key>IDESourceControlWCCName</key>
37+
<string>M13Checkbox</string>
38+
</dict>
39+
</array>
40+
</dict>
41+
</plist>

0 commit comments

Comments
 (0)