You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.7 KiB

2 years ago
//
// XHEmotionManagerView.h
// MessageDisplayExample
//
// Created by HUAJIE-1 on 14-5-3.
// Copyright (c) 2014年 曾宪华 开发团队(http://iyilunba.com ) 本人QQ:543413507 本人QQ群(142557668). All rights reserved.
//
#import <UIKit/UIKit.h>
#import "XHEmotionManager.h"
#import "XHMacro.h"
#define kXHEmotionPerRowItemCount (kIsiPad ? 10 : 4)
#define kXHEmotionPageControlHeight 38
#define kXHEmotionSectionBarHeight 36
@protocol XHEmotionManagerViewDelegate <NSObject>
@optional
/**
* gif表情被点击的回调事件
*
* @param emotion gif表情Model
* @param indexPath
*/
- (void)didSelecteEmotion:(XHEmotion *)emotion atIndexPath:(NSIndexPath *)indexPath;
@end
@protocol XHEmotionManagerViewDataSource <NSObject>
@required
/**
*
*
* @param column
*
* @return Model对象
*/
- (XHEmotionManager *)emotionManagerForColumn:(NSInteger)column;
/**
* Model数组
*
* @return Model元素的数组
*/
- (NSArray *)emotionManagersAtManager;
/**
* gif表情
*
* @return
*/
- (NSInteger)numberOfEmotionManagers;
@end
@interface XHEmotionManagerView : UIView
@property (nonatomic, weak) id <XHEmotionManagerViewDelegate> delegate;
@property (nonatomic, weak) id <XHEmotionManagerViewDataSource> dataSource;
/**
*
*/
@property (nonatomic, assign) BOOL isShowEmotionStoreButton; // default is YES
/**
* UI布局和数据
*/
- (void)reloadData;
@end