From 5b6e21e2e95f3128a4d5629e57b5ce364d58cca7 Mon Sep 17 00:00:00 2001 From: isaced Date: Tue, 16 Jun 2015 15:42:26 +0800 Subject: [PATCH] Add comment documentation --- ISEmojiView/ISEmojiView.h | 11 ++++++++++- ISEmojiView/ISEmojiView.m | 13 +++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/ISEmojiView/ISEmojiView.h b/ISEmojiView/ISEmojiView.h index fe36920..95753c8 100644 --- a/ISEmojiView/ISEmojiView.h +++ b/ISEmojiView/ISEmojiView.h @@ -24,18 +24,25 @@ /** * ISEmojiView Delegate + * * Used to respond to some of the operations callback */ @protocol ISEmojiViewDelegate /** * When you choose a Emoji + * + * @param emojiView The emoji keyboard view + * @param emoji The selected emoji character */ -(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 + * @param emojiView The emoji keyboard view + * @param deletebutton The delete button */ -(void)emojiView:(ISEmojiView *)emojiView didPressDeleteButton:(UIButton *)deletebutton; @@ -43,6 +50,8 @@ /** - * The Delete key + * The Delete Button + * + * You do not care about it */ @interface ISDeleteButton : UIButton @end \ No newline at end of file diff --git a/ISEmojiView/ISEmojiView.m b/ISEmojiView/ISEmojiView.m index 49100fc..0639a19 100644 --- a/ISEmojiView/ISEmojiView.m +++ b/ISEmojiView/ISEmojiView.m @@ -14,8 +14,19 @@ static const CGFloat EmojiFontSize = 32; @interface ISEmojiView() +/** + * All emoji characters + */ @property (nonatomic, strong) NSArray *emojis; + +/** + * Emoji container used to store all the elements + */ @property (nonatomic, strong) UIScrollView *scrollView; + +/** + * UIPageControl for next page + */ @property (nonatomic, strong) UIPageControl *pageControl; @end @@ -164,6 +175,8 @@ static const CGFloat EmojiFontSize = 32; /** * Draw the delete key + * + * @param rect Context Rect */ -(void)drawRect:(CGRect)rect{