Skip to content

Commit

Permalink
Merge pull request cocos2d#12848 from Mazyod/v3
Browse files Browse the repository at this point in the history
Improving iOS EditBox Implementation
  • Loading branch information
zilongshanren committed Jul 18, 2015
2 parents c4fa3ac + 2bb26e3 commit b6aa396
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 174 deletions.
31 changes: 1 addition & 30 deletions cocos/ui/UIEditBox/UIEditBoxImpl-ios.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,36 +33,7 @@
#include "extensions/ExtensionMacros.h"
#include "UIEditBoxImpl.h"

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface UICustomUITextField : UITextField
{
}

@end


@interface UIEditBoxImplIOS_objc : NSObject <UITextFieldDelegate>
{
UICustomUITextField* textField_;
void* editBox_;
BOOL editState_;
}

@property(nonatomic, retain) UITextField* textField;
@property(nonatomic, readonly, getter = isEditState) BOOL editState;
@property(nonatomic, assign) void* editBox;

-(id) initWithFrame: (CGRect) frameRect editBox: (void*) editBox;
-(void) doAnimationWhenKeyboardMoveWithDuration:(float)duration distance:(float)distance;
-(void) setPosition:(CGPoint) pos;
-(void) setContentSize:(CGSize) size;
-(void) visit;
-(void) openKeyboard;
-(void) closeKeyboard;

@end
@class UIEditBoxImplIOS_objc;

NS_CC_BEGIN

Expand Down
Loading

0 comments on commit b6aa396

Please sign in to comment.