EmojiObj.m 797 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // EmojiObj.m
  3. // BuguLive
  4. //
  5. // Created by 朱庆彬 on 2017/8/15.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import "EmojiObj.h"
  9. @implementation EmojiObj
  10. /*子类中实现*/
  11. + (NSArray *)emojiObjsWithPage:(NSInteger)page { return @[]; }
  12. + (NSInteger)pageCountIsSupport { return 0; }
  13. /*子类不需要实现*/
  14. + (NSInteger)countInOneLine
  15. {
  16. return (kScreenW + EmojiIMG_Space - 2 * EmojiView_Border) / (EmojiIMG_Width_Hight + EmojiIMG_Space);
  17. }
  18. + (NSInteger)onePageCount
  19. {
  20. NSInteger count_line = [[self class] countInOneLine];
  21. return count_line * EmojiIMG_Lines - 1;
  22. }
  23. + (EmojiObj *)del_Obj
  24. {
  25. EmojiObj *del_obj = [EmojiObj new];
  26. del_obj.emojiImgName = [NSString stringWithFormat:@"face.bundle/%@", @"compose_emotion_delete"];
  27. return del_obj;
  28. }
  29. @end