Oops, committed duplicate code by mistake

This commit is contained in:
Mazyad Alabduljaleel 2015-09-16 10:12:07 +03:00
parent 61980d1a8b
commit 3090599f83
1 changed files with 0 additions and 67 deletions

View File

@ -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<UITextFieldDelegate,UITextViewDelegate>)delegate
{
self.delegate = delegate;
}
@end
/**
* http://stackoverflow.com/questions/1328638/placeholder-in-uitextview
*/