mirror of https://github.com/axmolengine/axmol.git
Oops, committed duplicate code by mistake
This commit is contained in:
parent
61980d1a8b
commit
3090599f83
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue