diff --git a/ISEmojiView/ISEmojiView.h b/ISEmojiView/ISEmojiView.h index bf2e6c2..fe36920 100644 --- a/ISEmojiView/ISEmojiView.h +++ b/ISEmojiView/ISEmojiView.h @@ -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 @protocol ISEmojiViewDelegate; +/** + * The custom keyboard view + */ @interface ISEmojiView : UIView +/** + * ISEmojiView Delegate + */ @property (nonatomic, assign) id delegate; @end +/** + * ISEmojiView Delegate + * Used to respond to some of the operations callback + */ @protocol ISEmojiViewDelegate +/** + * 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 \ No newline at end of file +/** + * The Delete key + */ +@interface ISDeleteButton : UIButton @end \ No newline at end of file diff --git a/ISEmojiView/ISEmojiView.m b/ISEmojiView/ISEmojiView.m index 48985f4..49100fc 100644 --- a/ISEmojiView/ISEmojiView.m +++ b/ISEmojiView/ISEmojiView.m @@ -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