MHConstant.m 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. //
  2. // MHConstant.m
  3. // MHDevelopExample
  4. //
  5. // Created by CoderMikeHe on 17/2/7.
  6. // Copyright © 2017年 CoderMikeHe. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. /**
  11. * 全局细线高度 .75f
  12. */
  13. CGFloat const MHGlobalBottomLineHeight = .55f;
  14. /**
  15. * UIView 动画时长
  16. */
  17. NSTimeInterval const MHAnimateDuration = .35f;
  18. /**
  19. * 全局控制器顶部间距 10
  20. */
  21. CGFloat const MHGlobalViewTopInset = 10.0f;
  22. /**
  23. * 全局控制器左边间距 12
  24. */
  25. CGFloat const MHGlobalViewLeftInset = 12.0f;
  26. /**
  27. * 全局控制器中间间距 10
  28. */
  29. CGFloat const MHGlobalViewInterInset = 10.0f;
  30. /** 百思不得姐 -顶部标题的高度 */
  31. CGFloat const MHTitilesViewH = 44;
  32. /** 百思不得姐-顶部标题的Y */
  33. CGFloat const MHTitilesViewY = 64;
  34. /** 网易新闻-颜色 R、G、B、A*/
  35. CGFloat const MHTopicLabelRed = .4f;
  36. CGFloat const MHTopicLabelGreen = .6f;
  37. CGFloat const MHTopicLabelBlue = .7f;
  38. CGFloat const MHTopicLabelAlpha = 1.0f;
  39. // 仿微信朋友圈评论和回复
  40. // 段头+cell+表头
  41. /** 话题头像宽高 */
  42. CGFloat const MHTopicAvatarWH = 35.0f ;
  43. /** 话题水平方向间隙 */
  44. CGFloat const MHTopicHorizontalSpace = 21.0f;
  45. /** 话题垂直方向间隙 */
  46. CGFloat const MHTopicVerticalSpace = 15.0f ;
  47. /** 话题更多按钮宽 */
  48. CGFloat const MHTopicMoreButtonW = 14.0f ;
  49. /** 评论水平方向间隙 */
  50. CGFloat const MHCommentHorizontalSpace = 11.0f;
  51. /** 评论垂直方向间隙 */
  52. CGFloat const MHCommentVerticalSpace = 7.0f;
  53. /** 文本行高 */
  54. CGFloat const MHCommentContentLineSpacing = 10.0f;
  55. /** 评论假数据的id */
  56. NSString * const MHAllCommentsId = @"MHAllCommentsId" ;
  57. /** 评论用户的key */
  58. NSString * const MHCommentUserKey = @"MHCommentUserKey";
  59. /** 评论高度 */
  60. CGFloat const MHCommentHeaderViewHeight = 100.0f;
  61. /** 评论工具高度 */
  62. CGFloat const MHCommentToolBarHeight = 44.0f ;
  63. /** 最大字数 */
  64. NSInteger const MHCommentMaxWords = 300 ;
  65. /** 每页数据 */
  66. NSUInteger const MHCommentMaxCount = 30;
  67. /** 弹出评论框View最小距离 */
  68. CGFloat const MHTopicCommentToolBarMinHeight = 105;
  69. /** 弹出评论框View的除了编辑框的高度 */
  70. CGFloat const MHTopicCommentToolBarWithNoTextViewHeight = 75;
  71. /** 视频评论成功的通知 */
  72. NSString * const MHCommentSuccessNotification = @"MHCommentSuccessNotification";
  73. /** 视频评论成功Key */
  74. NSString * const MHCommentSuccessKey = @"MHCommentSuccessKey" ;
  75. /** 视频点赞成功的通知 */
  76. NSString * const MHThumbSuccessNotification = @"MHThumbSuccessNotification" ;
  77. /** 视频评论回复成功的通知 */
  78. NSString * const MHCommentReplySuccessNotification = @"MHCommentReplySuccessNotification" ;
  79. /** 视频评论回复成功Key */
  80. NSString * const MHCommentReplySuccessKey = @"MHCommentReplySuccessKey" ;
  81. /** 视频评论获取成功的事件 */
  82. NSString * const MHCommentRequestDataSuccessNotification = @"MHCommentRequestDataSuccessNotification" ;
  83. /** 视频评论获取成功的事件 */
  84. NSString * const MHCommentRequestDataSuccessKey = @"MHCommentRequestDataSuccessKey" ;
  85. /** titleView高度 */
  86. CGFloat const MHRecommendTitleViewHeight = 32.0f;
  87. /** 选集view高度 */
  88. CGFloat const MHRecommendAnthologyViewHeight = 44.0f;
  89. /** 选集纯文本HeaderView高度 */
  90. CGFloat const MHRecommendAnthologyHeaderViewHeight = 91.0f;
  91. /** 评论高度 */
  92. CGFloat const MHRecommendCommentHeaderViewHeight = 100.0f;