StoryboardManager.m 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. //
  2. // StoryboardManager.m
  3. // Secret
  4. //
  5. // Created by armin on 2019/7/10.
  6. // Copyright © 2019 Chengdu Xinyue. All rights reserved.
  7. //
  8. #import "StoryboardManager.h"
  9. @interface StoryboardManager ()
  10. @property (weak, nonatomic) UIStoryboard *myCenter;
  11. @property (weak, nonatomic) UIStoryboard *setting;
  12. @property (weak, nonatomic) UIStoryboard *login;
  13. @property (weak, nonatomic) UIStoryboard *chatMsg;
  14. @property (weak, nonatomic) UIStoryboard *chatMsgSearch;
  15. @property (weak, nonatomic) UIStoryboard *myCenterSearch;
  16. @property (weak, nonatomic) UIStoryboard *workingGroup;
  17. @property (weak, nonatomic) UIStoryboard *chatMsgNotice;
  18. @property (weak, nonatomic) UIStoryboard *mailList;
  19. @property (weak, nonatomic) UIStoryboard *chatMsgDetailChat;
  20. @property (weak, nonatomic) UIStoryboard *tdInterLeterAnonymous;
  21. @property (weak, nonatomic) UIStoryboard *interLeterHome;
  22. @property (weak, nonatomic) UIStoryboard *verisonData;
  23. @property (weak, nonatomic) UIStoryboard *waitWork;
  24. @property (weak, nonatomic) UIStoryboard *TDGroup;
  25. @property (weak, nonatomic) UIStoryboard *myfavorite;
  26. @property (weak, nonatomic) UIStoryboard *myNoteBook;
  27. @property (weak, nonatomic) UIStoryboard *TDGroupInfo;
  28. @property (weak, nonatomic) UIStoryboard *myTDTopic;
  29. @property (weak, nonatomic) UIStoryboard *myTDTopicExtent;
  30. @property (weak, nonatomic) UIStoryboard *Search;
  31. @end
  32. @implementation StoryboardManager
  33. + (StoryboardManager *)shared {
  34. static dispatch_once_t onceToken;
  35. static StoryboardManager *manager;
  36. dispatch_once(&onceToken, ^{
  37. manager = [StoryboardManager new];
  38. });
  39. return manager;
  40. }
  41. - (UIStoryboard *)myCenter {
  42. if (_myCenter) {
  43. return _myCenter;
  44. }
  45. return _myCenter = [UIStoryboard storyboardWithName:@"My_Center" bundle:nil];
  46. }
  47. - (UIStoryboard *)setting {
  48. if (_setting) {
  49. return _setting;
  50. }
  51. return _setting = [UIStoryboard storyboardWithName:@"Setting" bundle:nil];
  52. }
  53. - (UIStoryboard *)login {
  54. if (_login) {
  55. return _login;
  56. }
  57. return _login = [UIStoryboard storyboardWithName:@"Login" bundle:nil];
  58. }
  59. - (UIStoryboard *)chatMsg {
  60. if (_chatMsg) {
  61. return _chatMsg;
  62. }
  63. return _chatMsg = [UIStoryboard storyboardWithName:@"ChatMsg" bundle:nil];
  64. }
  65. - (UIStoryboard *)chatMsgSearch {
  66. if (_chatMsgSearch) {
  67. return _chatMsgSearch;
  68. }
  69. return _chatMsgSearch = [UIStoryboard storyboardWithName:@"ChatMsgSearch" bundle:nil];
  70. }
  71. - (UIStoryboard *)myCenterSearch {
  72. if (_myCenterSearch) {
  73. return _myCenterSearch;
  74. }
  75. return _myCenterSearch = [UIStoryboard storyboardWithName:@"MyCenterSearch" bundle:nil];
  76. }
  77. - (UIStoryboard *)workingGroup {
  78. if (_workingGroup) {
  79. return _workingGroup;
  80. }
  81. return _workingGroup = [UIStoryboard storyboardWithName:@"WorkingGroup" bundle:nil];
  82. }
  83. - (UIStoryboard *)chatMsgNotice {
  84. if (_chatMsgNotice) {
  85. return _chatMsgNotice;
  86. }
  87. return _chatMsgNotice = [UIStoryboard storyboardWithName:@"ChatMsgNotice" bundle:nil];
  88. }
  89. - (UIStoryboard *)mailList {
  90. if (_mailList) {
  91. return _mailList;
  92. }
  93. return _mailList = [UIStoryboard storyboardWithName:@"MailList" bundle:nil];
  94. }
  95. - (UIStoryboard *)chatMsgDetailChat {
  96. if (_chatMsgDetailChat) {
  97. return _chatMsgDetailChat;
  98. }
  99. return _chatMsgDetailChat = [UIStoryboard storyboardWithName:@"ChatMsgDetail" bundle:nil];
  100. }
  101. - (UIStoryboard *)tdInterLeterAnonymous{
  102. if (_tdInterLeterAnonymous) {
  103. return _tdInterLeterAnonymous;
  104. }
  105. return _tdInterLeterAnonymous = [UIStoryboard storyboardWithName:@"TDAnonymousFileFind" bundle:nil];
  106. }
  107. - (UIStoryboard *)interLeterHome{
  108. if (_interLeterHome) {
  109. return _interLeterHome;
  110. }
  111. return _interLeterHome = [UIStoryboard storyboardWithName:@"TDInterLeterHome" bundle:nil];
  112. }
  113. - (UIStoryboard *)verisonData{
  114. if (_verisonData) {
  115. return _verisonData;
  116. }
  117. return _verisonData = [UIStoryboard storyboardWithName:@"VersionData" bundle:nil];
  118. }
  119. - (UIStoryboard *)waitWork{
  120. if (_waitWork) {
  121. return _waitWork;
  122. }
  123. return _waitWork = [UIStoryboard storyboardWithName:@"WaitWork" bundle:nil];
  124. }
  125. - (UIStoryboard *)TDGroup{
  126. if (_TDGroup) {
  127. return _TDGroup;
  128. }
  129. return _TDGroup = [UIStoryboard storyboardWithName:@"TDGroup" bundle:nil];
  130. }
  131. - (UIStoryboard *)myfavorite{
  132. if (_myfavorite) {
  133. return _myfavorite;
  134. }
  135. return _myfavorite = [UIStoryboard storyboardWithName:@"Favorite" bundle:nil];
  136. }- (UIStoryboard *)myNoteBook{
  137. if (_myNoteBook) {
  138. return _myNoteBook;
  139. }
  140. return _myNoteBook = [UIStoryboard storyboardWithName:@"NoteBook" bundle:nil];
  141. }
  142. - (UIStoryboard *)TDGroupInfo{
  143. if (_TDGroupInfo) {
  144. return _TDGroupInfo;
  145. }
  146. return _TDGroupInfo = [UIStoryboard storyboardWithName:@"TDGroupInfo" bundle:nil];
  147. }
  148. - (UIStoryboard *)myTDTopic{
  149. if (_myTDTopic) {
  150. return _myTDTopic;
  151. }
  152. return _myTDTopic = [UIStoryboard storyboardWithName:@"MyTDTopic" bundle:nil];
  153. }
  154. - (UIStoryboard *)myTDTopicExtent{
  155. if (_myTDTopicExtent) {
  156. return _myTDTopicExtent;
  157. }
  158. return _myTDTopicExtent = [UIStoryboard storyboardWithName:@"MyTDTopicExtent" bundle:nil];
  159. }
  160. - (UIStoryboard *)Search{
  161. if (_Search) {
  162. return _Search;
  163. }
  164. return _Search = [UIStoryboard storyboardWithName:@"Search" bundle:nil];
  165. }
  166. @end