Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
YuAo committed Apr 5, 2014
2 parents c24b24b + ee10c23 commit 90e2a35
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions WUEmoticonsKeyboard.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Pod::Spec.new do |s|

s.name = "WUEmoticonsKeyboard"
s.version = "0.1.0"
s.summary = "Customizable emotion icons keyboard for iOS."

s.description = <<-DESC
WUEmoticonsKeyboard is created under the development of [Weico+](http://plus.weico.com), and is already being used in __[Weico+](http://plus.weico.com) for iOS__'s production code.
#Features
1. Fully customizable.
2. UIAppearance support.
3. Easy to build and use.
4. Share the same layout with iOS's Emoji Keyboard.
5. Multiple emotion icon groups support.
DESC

s.homepage = "https://github.com/YuAo/WUEmoticonsKeyboard"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "YuAo" => "me@imyuao.com" }
s.platform = :ios, '6.0'
s.source = { :git => "https://github.com/YuAo/WUEmoticonsKeyboard.git", :tag => "0.1.0" }
s.source_files = 'WUEmoticonsKeyboard', 'WUEmoticonsKeyboard/**/*.{h,m}'
s.frameworks = 'UIKit', 'Foundation'
s.requires_arc = true

end
2 changes: 1 addition & 1 deletion WUEmoticonsKeyboard/WUEmoticonsKeyboardToolsView.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ - (void)setKeyItemGroups:(NSArray *)keyItemGroups {
- (void)segmentedControlValueChanged:(UISegmentedControl *)sender {
[self.keyItemGroups enumerateObjectsUsingBlock:^(WUEmoticonsKeyboardKeyItemGroup *obj, NSUInteger idx, BOOL *stop) {
if (obj.image) {
if (obj.selectedImage && idx == self.segmentedControl.selectedSegmentIndex) {
if (obj.selectedImage && (NSInteger)idx == self.segmentedControl.selectedSegmentIndex) {
[self.segmentedControl setImage:obj.selectedImage forSegmentAtIndex:idx];
} else {
[self.segmentedControl setImage:obj.image forSegmentAtIndex:idx];
Expand Down

0 comments on commit 90e2a35

Please sign in to comment.