Add some comments

This commit is contained in:
isaced 2015-06-02 16:49:47 +08:00
parent 5b43a3d7cb
commit a41147876d
2 changed files with 27 additions and 4 deletions

View File

@ -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

View File

@ -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