Skip to content

Commit 7cb6dd4

Browse files
author
Clemens Hammerl - iMac
committed
updated readme
1 parent f24465d commit 7cb6dd4

File tree

4 files changed

+110
-0
lines changed

4 files changed

+110
-0
lines changed

CHColorPickerDemo.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
ABCD67E81966CBCD00B5CFF4 /* CHColorPickerView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CHColorPickerView.m; path = CHColorPicker/CHColorPickerView.m; sourceTree = "<group>"; };
5959
ABCD67EA1966D29F00B5CFF4 /* UIColor+extensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIColor+extensions.h"; path = "../UIColor+extensions.h"; sourceTree = "<group>"; };
6060
ABCD67EB1966D29F00B5CFF4 /* UIColor+extensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIColor+extensions.m"; path = "../UIColor+extensions.m"; sourceTree = "<group>"; };
61+
ABCD67F11966F7BD00B5CFF4 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = text; path = README.md; sourceTree = "<group>"; };
6162
/* End PBXFileReference section */
6263

6364
/* Begin PBXFrameworksBuildPhase section */
@@ -87,6 +88,7 @@
8788
ABCD67A81966CAB500B5CFF4 = {
8889
isa = PBXGroup;
8990
children = (
91+
ABCD67F11966F7BD00B5CFF4 /* README.md */,
9092
ABCD67E31966CADF00B5CFF4 /* CHColorPicker */,
9193
ABCD67BA1966CAB500B5CFF4 /* CHColorPickerDemo */,
9294
ABCD67D31966CAB500B5CFF4 /* CHColorPickerDemoTests */,
@@ -484,6 +486,7 @@
484486
ABCD67DF1966CAB500B5CFF4 /* Release */,
485487
);
486488
defaultConfigurationIsVisible = 0;
489+
defaultConfigurationName = Release;
487490
};
488491
ABCD67E01966CAB500B5CFF4 /* Build configuration list for PBXNativeTarget "CHColorPickerDemoTests" */ = {
489492
isa = XCConfigurationList;
@@ -492,6 +495,7 @@
492495
ABCD67E21966CAB500B5CFF4 /* Release */,
493496
);
494497
defaultConfigurationIsVisible = 0;
498+
defaultConfigurationName = Release;
495499
};
496500
/* End XCConfigurationList section */
497501
};
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>6499F25D-D011-4E92-8A42-2FCD6D3538E4</string>
9+
<key>IDESourceControlProjectName</key>
10+
<string>CHColorPickerDemo</string>
11+
<key>IDESourceControlProjectOriginsDictionary</key>
12+
<dict>
13+
<key>14C94237-C20B-456F-8A24-D27505676DA5</key>
14+
<string>https://github.com/beat843796/CHColorPickerView.git</string>
15+
</dict>
16+
<key>IDESourceControlProjectPath</key>
17+
<string>CHColorPickerDemo.xcodeproj/project.xcworkspace</string>
18+
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
19+
<dict>
20+
<key>14C94237-C20B-456F-8A24-D27505676DA5</key>
21+
<string>../..</string>
22+
</dict>
23+
<key>IDESourceControlProjectURL</key>
24+
<string>https://github.com/beat843796/CHColorPickerView.git</string>
25+
<key>IDESourceControlProjectVersion</key>
26+
<integer>110</integer>
27+
<key>IDESourceControlProjectWCCIdentifier</key>
28+
<string>14C94237-C20B-456F-8A24-D27505676DA5</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>14C94237-C20B-456F-8A24-D27505676DA5</string>
36+
<key>IDESourceControlWCCName</key>
37+
<string>CHColorPicker</string>
38+
</dict>
39+
</array>
40+
</dict>
41+
</plist>

README.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,68 @@ CHColorPickerView
22
=================
33

44
Easy to use color picker for iOS with just one delegate method. Supports iPhone and iPad
5+
6+
## Usage
7+
- Refer to the **Demo project**.
8+
- Drag and Drop CHColorPicker.h/.m into your project
9+
- Implement the delegate method in your ViewController
10+
11+
12+
Setting up the SectionSelectionView (Example)
13+
14+
```objc
15+
colorPickerView = [[CHColorPickerView alloc] init];
16+
17+
18+
// 1. Setup delegate (Implement delegate methods)
19+
20+
colorPickerView.delegate = self;
21+
22+
23+
24+
// 2. Setup desired behaviour
25+
26+
colorPickerView.colorsPerRow = 4;
27+
colorPickerView.colorCellPadding = 2.0;
28+
29+
colorPickerView.highlightSelection = YES;
30+
colorPickerView.selectionBorderColor = [UIColor whiteColor];
31+
32+
33+
// 3. Set colors that should be available as an NSArray
34+
35+
[colorPickerView setColors:[self createDemoColor]];
36+
37+
38+
// 4 Do some styling
39+
40+
colorPickerView.backgroundColor = [UIColor colorWithHexString:@"1d2225"];
41+
42+
43+
// 5. add to view hierachy
44+
45+
[self.view addSubview:colorPickerView];
46+
```
47+
48+
Implement the delegate
49+
50+
```objc
51+
-(void)colorPickerView:(CHColorPickerView *)colorPickerView didSelectColor:(UIColor *)color;
52+
```
53+
54+
## License
55+
Copyright 2014 Clemens Hammerl
56+
57+
Licensed under the Apache License, Version 2.0 (the "License");
58+
you may not use this file except in compliance with the License.
59+
You may obtain a copy of the License at
60+
61+
http://www.apache.org/licenses/LICENSE-2.0
62+
63+
Unless required by applicable law or agreed to in writing, software
64+
distributed under the License is distributed on an "AS IS" BASIS,
65+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
66+
See the License for the specific language governing permissions and
67+
limitations under the License.
68+
69+
Attribution is appreciated.

0 commit comments

Comments
 (0)