From 3fec6f46c31039202bbe3ea22422760044cd8805 Mon Sep 17 00:00:00 2001 From: YuAo Date: Wed, 11 Sep 2013 17:59:49 +0800 Subject: [PATCH] silent warnings --- WUEmoticonsKeyboard/WUEmoticonsKeyboardToolsView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WUEmoticonsKeyboard/WUEmoticonsKeyboardToolsView.m b/WUEmoticonsKeyboard/WUEmoticonsKeyboardToolsView.m index 8bf4899..840933a 100644 --- a/WUEmoticonsKeyboard/WUEmoticonsKeyboardToolsView.m +++ b/WUEmoticonsKeyboard/WUEmoticonsKeyboardToolsView.m @@ -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];