NIMFileContentConfig.m 570 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // NIMFileContentConfig.m
  3. // NIMKit
  4. //
  5. // Created by amao on 9/15/15.
  6. // Copyright (c) 2015 NetEase. All rights reserved.
  7. //
  8. #import "NIMFileContentConfig.h"
  9. #import "NIMKit.h"
  10. @implementation NIMFileContentConfig
  11. - (CGSize)contentSize:(CGFloat)cellWidth message:(NIMMessage *)message
  12. {
  13. return CGSizeMake(220, 110);
  14. }
  15. - (NSString *)cellContent:(NIMMessage *)message
  16. {
  17. return @"NIMSessionFileTransContentView";
  18. }
  19. - (UIEdgeInsets)contentViewInsets:(NIMMessage *)message
  20. {
  21. return [[NIMKit sharedKit].config setting:message].contentInsets;
  22. }
  23. @end