From 3090599f83e09e14ee44e7be41ae0fa5ee301f79 Mon Sep 17 00:00:00 2001 From: Mazyad Alabduljaleel Date: Wed, 16 Sep 2015 10:12:07 +0300 Subject: [PATCH] Oops, committed duplicate code by mistake --- .../UIEditBox/iOS/CCUIMultilineTextField.mm | 67 ------------------- 1 file changed, 67 deletions(-) diff --git a/cocos/ui/UIEditBox/iOS/CCUIMultilineTextField.mm b/cocos/ui/UIEditBox/iOS/CCUIMultilineTextField.mm index c9036dd47f..08660cbfe6 100644 --- a/cocos/ui/UIEditBox/iOS/CCUIMultilineTextField.mm +++ b/cocos/ui/UIEditBox/iOS/CCUIMultilineTextField.mm @@ -10,73 +10,6 @@ #include "base/CCDirector.h" - -@implementation UITextView (CCUITextInput) - -- (NSString *)ccui_text -{ - return self.text; -} - -- (void)ccui_setText:(NSString *)ccui_text -{ - self.text = ccui_text; -} - -- (NSString *)ccui_placeholder -{ - SEL selector = @selector(placeholder); - if ([self respondsToSelector:selector]) { - return [self performSelector:selector]; - } - return nil; -} - -- (void)ccui_setPlaceholder:(NSString *)ccui_placeholder -{ - SEL selector = @selector(setPlaceholder:); - if ([self respondsToSelector:selector]) { - [self performSelector:selector withObject:ccui_placeholder]; - } -} - -- (UIColor *)ccui_textColor -{ - return self.textColor; -} - -- (void)ccui_setTextColor:(UIColor *)ccui_textColor -{ - self.textColor = ccui_textColor; -} - -- (UIFont *)ccui_font -{ - return self.font; -} - -- (void)ccui_setFont:(UIFont *)ccui_font -{ - self.font = ccui_font; -} - -- (BOOL)ccui_secureTextEntry -{ - return self.secureTextEntry; -} - -- (void)ccui_setSecureTextEntry:(BOOL)ccui_secureTextEntry -{ - self.secureTextEntry = ccui_secureTextEntry; -} - -- (void)ccui_setDelegate:(id)delegate -{ - self.delegate = delegate; -} - -@end - /** * http://stackoverflow.com/questions/1328638/placeholder-in-uitextview */