RQConstant.m 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. //
  2. // RQConstant.m
  3. // RQCommon
  4. //
  5. // Created by 张嵘 on 2018/11/13.
  6. // Copyright © 2018 张嵘. All rights reserved.
  7. //
  8. #import "RQConstant.h"
  9. #import <UIKit/UIKit.h>
  10. #pragma mark - 应用相关的
  11. /// 切换根控制器的通知 新特性
  12. NSString * const RQSwitchRootViewControllerNotification = @"RQSwitchRootViewControllerNotification";
  13. /// 切换根控制器的通知 UserInfo key
  14. NSString * const RQSwitchRootViewControllerUserInfoKey = @"RQSwitchRootViewControllerUserInfoKey";
  15. /// 插件Switch按钮值改变
  16. NSString * const RQPlugSwitchValueDidChangedNotification = @"RQPlugSwitchValueDidChangedNotification";
  17. /// 切换首页的通知
  18. NSString * const RQSwitchHomePageViewControllerNotification = @"RQSwitchHomePageViewControllerNotification";
  19. /// 切换首页的通知 UserInfo key
  20. NSString * const RQSwitchHomePageViewControllerUserInfoKey = @"RQSwitchHomePageViewControllerUserInfoKey";
  21. /// 切换个人页的通知
  22. NSString * const RQSwitchProfilePageViewControllerNotification = @"RQSwitchProfilePageViewControllerNotification";
  23. /// 切换个人页的通知 UserInfo key
  24. NSString * const RQSwitchProfilePageViewControllerUserInfoKey = @"RQSwitchProfilePageViewControllerUserInfoKey";
  25. /// Loding通用标题
  26. NSString * const RQLodingCommonTitleString = @"请稍后...";
  27. /// 全局分割线高度 .5
  28. CGFloat const RQGlobalBottomLineHeight = 0.5f;
  29. /// 个性签名的最大字数为30
  30. NSUInteger const RQFeatureSignatureMaxWords = 30;
  31. /// 用户昵称的最大字数为20
  32. NSUInteger const RQNicknameMaxWords = 20;
  33. /// 简书首页地址
  34. NSString * const RQMyBlogHomepageUrl = @"http://www.jianshu.com/u/126498da7523";
  35. /// 国家区号
  36. NSString * const RQMobileLoginZoneCodeKey = @"RQMobileLoginZoneCodeKey";
  37. /// 手机号码
  38. NSString * const RQMobileLoginPhoneKey = @"RQMobileLoginPhoneKey";
  39. /// 密码
  40. NSString * const RQMobileLoginPasswordKey = @"RQMobileLoginPasswordKey";
  41. /// 验证码
  42. NSString * const RQCaptchaKey = @"RQCaptchaKey";
  43. /// 验证码时间
  44. NSUInteger const RQCaptchaFetchMaxWords = 60;
  45. /// 温州人脸比对次数
  46. NSUInteger const RQWenZhouFaceNum = 3;
  47. /// 莆田人脸比对次数
  48. NSUInteger const RQPuTianFaceNum = 1;
  49. /// 朋友圈 ---
  50. /// 分割线高度
  51. CGFloat const WXGlobalBottomLineHeight = .5f;
  52. /// 以下是 常量定义区
  53. /// profileView
  54. /// 头像宽高 15
  55. CGFloat const RQMomentProfileViewAvatarViewWH = 75.0f;
  56. /// 消息tips宽高 40
  57. CGFloat const RQMomentProfileViewTipsViewHeight = 40.0f;
  58. /// 消息tips宽高 181
  59. CGFloat const RQMomentProfileViewTipsViewWidth = 181.0f;
  60. /// 消息tipsView内部的头像宽高 30
  61. CGFloat const RQMomentProfileViewTipsViewAvatarWH = 30.0f;
  62. /// 消息tipsView内部的头像距离tipsView边距 5
  63. CGFloat const RQMomentProfileViewTipsViewInnerInset = 5.0f;
  64. /// 消息tipsView内部的右箭头距离tipsView边距 11
  65. CGFloat const RQMomentProfileViewTipsViewRightInset = 11.0f;
  66. /// 消息tipsView内部的右箭头宽高 15
  67. CGFloat const RQMomentProfileViewTipsViewRightArrowWH = 15.0f;
  68. /// 说说内容距离顶部的间距 16
  69. CGFloat const RQMomentContentTopInset = 16.0f;
  70. /// 说说内容距离左右屏幕的间距 20
  71. CGFloat const RQMomentContentLeftOrRightInset = 20.0f;
  72. /// 内容(控件)之间的的间距 10
  73. CGFloat const RQMomentContentInnerMargin = 10.0f;
  74. /// 用户头像的大小 44x44
  75. CGFloat const RQMomentAvatarWH = 44.0f;
  76. /// 向上箭头W 45
  77. CGFloat const RQMomentUpArrowViewWidth = 45.0f;
  78. /// 向上箭头H 6
  79. CGFloat const RQMomentUpArrowViewHeight = 6.0f;
  80. /// 全文、收起W
  81. CGFloat const RQMomentExpandButtonWidth = 35.0f;
  82. /// 全文、收起H
  83. CGFloat const RQMomentExpandButtonHeight = 25.0f;
  84. /// pictureView中图片之间的的间距 6
  85. CGFloat const RQMomentPhotosViewItemInnerMargin = 6.0f;
  86. /// pictureView中图片的大小 86x86 (屏幕尺寸>320)
  87. CGFloat const RQMomentPhotosViewItemWH1 = 86.0f;
  88. /// pictureView中图片的大小 70x70 (屏幕尺寸<=320)
  89. CGFloat const RQMomentPhotosViewItemWH2 = 70.0f;
  90. /// 分享内容高度
  91. CGFloat const RQMomentShareInfoViewHeight = 50.0f;
  92. /// videoView高度
  93. CGFloat const RQMomentVideoViewHeight = 181.0f;
  94. /// videoView宽度
  95. CGFloat const RQMomentVideoViewWidth = 103.0f;
  96. /// 正文内容的显示最大行数(PS:如果超过最大值,那么正文内容就单行显示,可以点击正文内容查看全部内容)
  97. NSUInteger const RQMomentContentTextMaxCriticalRow = 12000;
  98. /// 正文内容显示(全文/收起)的临界行
  99. NSUInteger const RQMomentContentTextExpandCriticalRow = 6;
  100. /// pictureView最多显示的图片数
  101. NSUInteger const RQMomentPhotosMaxCount = 9;
  102. /// 单张图片的最大高度(等比例)180 (ps:别问我为什么,我量出来的)
  103. CGFloat const RQMomentPhotosViewSingleItemMaxHeight = 180;
  104. /// 更多按钮宽高 (实际:25x25)
  105. CGFloat const RQMomentOperationMoreBtnWH = 25;
  106. /// footerViewHeight
  107. CGFloat const RQMomentFooterViewHeight = 15;
  108. //// 评论和点赞view 常量
  109. /// 评论内容距离顶部的间距 5
  110. CGFloat const RQMomentCommentViewContentTopOrBottomInset = 5;
  111. /// 评论内容距离评论View左右屏幕的间距 9
  112. CGFloat const RQMomentCommentViewContentLeftOrRightInset = 9;
  113. /// 点赞内容距离顶部的间距 7
  114. CGFloat const RQMomentCommentViewAttitudesTopOrBottomInset = 7;
  115. /// 更多操作View的Size 181x39
  116. CGFloat const RQMomentOperationMoreViewWidth = 181.0f;
  117. CGFloat const RQMomentOperationMoreViewHeight = 39.0f;
  118. /// 动画时间 .25f
  119. NSTimeInterval const RQMommentAnimatedDuration = .2f;
  120. /// 链接key
  121. NSString * const RQMomentLinkUrlKey = @"RQMomentLinkUrlKey";
  122. /// 电话号码key
  123. NSString * const RQMomentPhoneNumberKey = @"RQMomentPhoneNumberKey";
  124. /// 位置key
  125. NSString * const RQMomentLocationNameKey = @"RQMomentLocationNameKey";
  126. /// 用户信息key
  127. NSString * const RQMomentUserInfoKey = @"RQMomentUserInfoKey";
  128. /// 评论View
  129. /** 弹出评论框View最小高度 */
  130. CGFloat const RQMomentCommentToolViewMinHeight = 60;
  131. /** 弹出评论框View最大高度 */
  132. CGFloat const RQMomentCommentToolViewMaxHeight = 130;
  133. /** 弹出评论框View的除了编辑框的高度 */
  134. CGFloat const RQMomentCommentToolViewWithNoTextViewHeight = 20;
  135. /// 首页轮播图Modelkey
  136. NSString * const RQSignUpCycleModelsKey = @"RQSignUpCycleModelsKey";
  137. /// 计时轮播图Modelkey
  138. NSString * const RQTimingCycleModelsKey = @"RQTimingCycleModelsKey";
  139. /// 启动广告图key
  140. NSString * const RQStudentWelcomeImageModelKey = @"RQStudentWelcomeImageModelKey";
  141. /// 隐私政策地址
  142. NSString * const RQPrivacyPolicyUrl = @"https://ys.zzxcx.net/xy_sdjk.html";
  143. /// 公司名称
  144. NSString * const RQCompanyName = @"中振网络科技有限公司";