NIMContactDefines.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // NIMContactDefines.h
  3. // NIM
  4. //
  5. // Created by chris on 15/2/26.
  6. // Copyright (c) 2015年 Netease. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol NIMGroupMemberProtocol <NSObject>
  10. - (NSString *)groupTitle;
  11. - (NSString *)memberId;
  12. - (NSString *)showName;
  13. - (id)sortKey;
  14. @end
  15. @protocol NIMContactItemCollection <NSObject>
  16. //显示的title名
  17. - (NSString*)title;
  18. //返回集合里的成员
  19. - (NSArray*)members;
  20. //重用id
  21. - (NSString*)reuseId;
  22. //需要构造的cell类名
  23. - (NSString*)cellName;
  24. @end
  25. #ifndef NIM_NTESContactCellLayoutConstant_h
  26. #define NIM_NTESContactCellLayoutConstant_h
  27. static const CGFloat NIMContactUtilRowHeight = 57;//util类Cell行高
  28. static const CGFloat NIMContactDataRowHeight = 50;//data类Cell行高
  29. static const NSInteger NIMContactAccessoryLeft = 10;//选择框到左边的距离
  30. static const NSInteger NIMContactAvatarLeft = 10;//没有选择框的时候,头像到左边的距离
  31. static const NSInteger NIMContactAvatarAndAccessorySpacing = 10;//头像和选择框之间的距离
  32. static const NSInteger NIMContactAvatarAndTitleSpacing = 20;//头像和文字之间的间距
  33. #endif