Add some comments
This commit is contained in:
parent
5b43a3d7cb
commit
a41147876d
|
|
@ -3,26 +3,46 @@
|
|||
// ISEmojiViewSample
|
||||
//
|
||||
// Created by isaced on 14/12/25.
|
||||
// Copyright (c) 2014年 isaced. All rights reserved.
|
||||
// Copyright (c) 2014 Year isaced. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@protocol ISEmojiViewDelegate;
|
||||
|
||||
/**
|
||||
* The custom keyboard view
|
||||
*/
|
||||
@interface ISEmojiView : UIView
|
||||
|
||||
/**
|
||||
* ISEmojiView Delegate
|
||||
*/
|
||||
@property (nonatomic, assign) id<ISEmojiViewDelegate> delegate;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
* ISEmojiView Delegate
|
||||
* Used to respond to some of the operations callback
|
||||
*/
|
||||
@protocol ISEmojiViewDelegate <NSObject>
|
||||
|
||||
/**
|
||||
* When you choose a Emoji
|
||||
*/
|
||||
-(void)emojiView:(ISEmojiView *)emojiView didSelectEmoji:(NSString *)emoji;
|
||||
|
||||
/**
|
||||
* When the touch bottom right corner of the delete key
|
||||
* You should remove the last character(emoji) in the text box
|
||||
*/
|
||||
-(void)emojiView:(ISEmojiView *)emojiView didPressDeleteButton:(UIButton *)deletebutton;
|
||||
|
||||
@end
|
||||
|
||||
@interface ISDeleteButton : UIButton
|
||||
|
||||
@end
|
||||
/**
|
||||
* The Delete key
|
||||
*/
|
||||
@interface ISDeleteButton : UIButton @end
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
// ISEmojiViewSample
|
||||
//
|
||||
// Created by isaced on 14/12/25.
|
||||
// Copyright (c) 2014年 isaced. All rights reserved.
|
||||
// Copyright (c) 2014 Year isaced. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ISEmojiView.h"
|
||||
|
|
@ -162,6 +162,9 @@ static const CGFloat EmojiFontSize = 32;
|
|||
|
||||
@implementation ISDeleteButton
|
||||
|
||||
/**
|
||||
* Draw the delete key
|
||||
*/
|
||||
-(void)drawRect:(CGRect)rect{
|
||||
|
||||
// Rectangle Drawing
|
||||
|
|
|
|||
Loading…
Reference in New Issue