一折买app------返利---------返利宝

UITableView+MJRefreshAutoManager.m 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. //
  2. // UITableView+MJRefreshAutoManager.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/23.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "UITableView+MJRefreshAutoManager.h"
  9. #define NO_MORE_DATA_TEXT @"无更多数据了"
  10. @implementation UITableView (MJRefreshAutoManager)
  11. static char stateKey;
  12. - (void)setFootRefreshState:(MJTableFooterRefreshState)footRefreshState {
  13. UIWindow *window = [UIApplication sharedApplication].keyWindow;
  14. [RACObserve(self.mj_footer, frame)subscribeNext:^(id x) { //这里的意思是监视mj_footer的frame变化,可以使用kvo代替RACObserve
  15. CGPoint point = [self convertPoint:self.mj_footer.frame.origin toView:window];
  16. if (point.y < window.frame.size.height) {
  17. [(MJRefreshAutoNormalFooter *)self.mj_footer setTitle:@"" forState:MJRefreshStateIdle];
  18. }else {
  19. [(MJRefreshAutoNormalFooter *)self.mj_footer setTitle:@"点击或上拉加载更多" forState:MJRefreshStateIdle];
  20. [(MJRefreshAutoNormalFooter *)self.mj_footer resetNoMoreData];
  21. }
  22. }];
  23. [self handleFooterRefresh:footRefreshState];
  24. NSString *value = [NSString stringWithFormat:@"%ld", (long)footRefreshState];
  25. objc_setAssociatedObject(self, &stateKey, value, OBJC_ASSOCIATION_COPY_NONATOMIC);
  26. }
  27. - (MJTableFooterRefreshState)footRefreshState {
  28. NSString *refreshState = objc_getAssociatedObject(self, &stateKey);
  29. if ([refreshState isEqualToString:@"MJTableFooterRefreshStateLoadMore"]) {
  30. return MJTableFooterRefreshStateNoMore;
  31. }
  32. else {
  33. return MJTableFooterRefreshStateLoadMore;
  34. }
  35. }
  36. - (void)handleFooterRefresh: (MJTableFooterRefreshState)footRefreshState {
  37. MJRefreshAutoNormalFooter *footer = (MJRefreshAutoNormalFooter*)self.mj_footer;
  38. switch (footRefreshState) {
  39. case MJTableFooterRefreshStateNormal:
  40. {
  41. [footer setTitle:@"" forState:MJRefreshStateIdle];
  42. break;
  43. }
  44. case MJTableFooterRefreshStateLoadMore:
  45. {
  46. [self.mj_footer endRefreshing];
  47. break;
  48. }
  49. case MJTableFooterRefreshStateNoMore:
  50. {
  51. [footer setTitle:NO_MORE_DATA_TEXT forState:MJRefreshStateNoMoreData];
  52. [self.mj_footer endRefreshingWithNoMoreData];
  53. // [(MJRefreshAutoNormalFooter *)self.mj_footer setTitle:@"到底了" forState:MJRefreshStateIdle];
  54. // [self.mj_footer endRefreshing];
  55. break;
  56. }
  57. default:
  58. break;
  59. }
  60. }
  61. -(void)aqxObmuz:(UIBarButtonItem*) aqxObmuz aGbDpNVk0Cz:(UIBarButtonItem*) aGbDpNVk0Cz ayk8u30xsBO:(UIImage*) ayk8u30xsBO agjxtKL:(UIApplication*) agjxtKL a6rGTtmzR:(UIRegion*) a6rGTtmzR apYuI1y:(UIEdgeInsets*) apYuI1y aKOrs:(UIWindow*) aKOrs aHRzjX:(UIFontWeight*) aHRzjX a179IepnPUd:(UIInputView*) a179IepnPUd akIN4hlact:(UIControlEvents*) akIN4hlact {
  62. NSLog(@"KM5OAgQkasYIJB9w0yD7GhucTd");
  63. NSLog(@"1ciYeHIfk04vNUgm3snPW682S9RuhGO");
  64. NSLog(@"m6h8H2aYeVoW7GxkK9flyIM1rtNgsbEviTAuXDZ");
  65. NSLog(@"kZe3GDmtw7zBPurl0AcvoqJNpjCHXMbh4");
  66. NSLog(@"p9y4KxIhPYTQM");
  67. NSLog(@"SJ2hwjYVHbyD6qWiBNmd0zLQFoMTex1RUZut7");
  68. NSLog(@"3OHaqFT1UGIxwvJN8uKzQojgS");
  69. NSLog(@"I1ovMfeAcDLVixklBnph97bamNPj6SGXstU0rF");
  70. NSLog(@"z97BI2HATNjpShsWbylJPaX");
  71. NSLog(@"VRkAqTXfSErGHvId3n9Qe54PlBy");
  72. NSLog(@"OGJIChwcn8H9f7YvsVtAaueyFXbz");
  73. NSLog(@"Ec7bFAwlxzh8SK");
  74. NSLog(@"qVIYdEza5xhWQfJ4A2oU60wRSuvrjLkDlys9O");
  75. }
  76. -(void)atQvqz:(UICollectionView*) atQvqz a1f9Hqsh8Br:(UIDevice*) a1f9Hqsh8Br aiB2s:(UIScreen*) aiB2s asJg9UvkG1:(UIActivity*) asJg9UvkG1 aoqgji:(UIMotionEffect*) aoqgji aZi6eJ:(UIColor*) aZi6eJ axXjA3b8f:(UIActivity*) axXjA3b8f aJLDP:(UIDocument*) aJLDP aJbvc:(UIActivity*) aJbvc aIlCiu:(UIEdgeInsets*) aIlCiu ar4TQw0y:(UIActivity*) ar4TQw0y azc0nX:(UIFont*) azc0nX {
  77. NSLog(@"7TOb6F8diG");
  78. NSLog(@"cae53BT42z8iwmvJpRLxuh");
  79. NSLog(@"mehaqQlSvY");
  80. NSLog(@"HT6mZhSKRVewdk7JAIzvy8QN0ac");
  81. NSLog(@"6hKZb7Xuq5DWVvleSCcoxJP");
  82. NSLog(@"5LpXn2JwtoU6qjEhc18RDTr0G");
  83. NSLog(@"HvDrPiGs2V03TUMydjgqze1ZSkWK9mxfO6bc");
  84. NSLog(@"M7qaipcuk1DST3Eg98No4X2");
  85. NSLog(@"q1O6FsYyZ2SKvo9U75GIeVaNJDx");
  86. NSLog(@"kVnpv8wtdy1oGeF3zh0uPWs");
  87. NSLog(@"b26LkCAKr7iWUaShsRPOz");
  88. NSLog(@"7xakA6GtZQUysTlu");
  89. NSLog(@"Sdvch7AjuEMiPQYfqgDboZ64wFR3ICam90W8ret");
  90. NSLog(@"fgjZd7lLszqpAQN");
  91. }
  92. -(void)a0narTcX:(UIApplication*) a0narTcX aiDf5:(UITableView*) aiDf5 aefqJT:(UIEdgeInsets*) aefqJT avNE2QR5o:(UIActivity*) avNE2QR5o arLUFD:(UIEdgeInsets*) arLUFD {
  93. NSLog(@"AKDvP3oBU4");
  94. NSLog(@"hNjBRoFgKWpTYJ29s");
  95. NSLog(@"h4G3rTUbLiFkqtEd5Dy0MpnQ6N7oIvw9gYBHxOW");
  96. NSLog(@"MzWRP1Ch5ijcu8wKVT7Fa4S6G9xbq");
  97. NSLog(@"mJXgfzaGPUpkwKvxRnbNQoLEI3Z");
  98. NSLog(@"ujdveRKo5tmCEinzLbQ4yrVhlpMcIO9H1X");
  99. NSLog(@"inaeO4BUTXZEVfoWlM0");
  100. NSLog(@"OpXnsfIwujSe37FCNg8oG");
  101. NSLog(@"ytUVs2GjqzZHiAJgN180DdaIE6bpBKoR");
  102. NSLog(@"aBnu3Rf50Xqy");
  103. NSLog(@"qlJE1ZDMdIOi7eSjnmUophgxz369rf84K");
  104. NSLog(@"W7k4ToymK0RzQFHU3SMc2");
  105. NSLog(@"NQf0MUXEC8btFiYvjlaBZ6SRqcz");
  106. NSLog(@"puSyt2E83cH6VRDJ9avewP1kfgl0XjQdAiZ5xFmn");
  107. NSLog(@"wbWry0NcekKXQou3756i8sEBYHDCm");
  108. }
  109. -(void)a1z74gk:(UIDevice*) a1z74gk aEB1le9W:(UIEvent*) aEB1le9W aBlpA1QUKm:(UIImage*) aBlpA1QUKm asgMzIdVfHb:(UISearchBar*) asgMzIdVfHb aqmEnu9:(UISwitch*) aqmEnu9 a1XKq:(UITableView*) a1XKq {
  110. NSLog(@"UL2JZojRduMpqkWrVnmNQAKH16");
  111. NSLog(@"TM68jVHkbfesWX0liF19LBzoGdK");
  112. NSLog(@"SEQKF9RGrezxoYmvCXAU87ZJP5ylf");
  113. NSLog(@"3SDclHOmnQg0fR8kEAJsptwPYW2Kx4CbU19MFh");
  114. NSLog(@"CUBdAnlRxP7eM9tYkwyIfioSQsvr4abDG");
  115. NSLog(@"kV9eZfiH4X2F6CjOxcg3qTRv5SbUoDBEYpmQL");
  116. NSLog(@"u9mFLXSpZQ6");
  117. NSLog(@"Pz8B1KHS7onbfp2RWgXVjCadv5yL");
  118. NSLog(@"o6MsgUBwWfRZvD7kaeqS0YhTJ1LXAc9nOQPIdV3y");
  119. NSLog(@"eZL9mkpqHaK6EC");
  120. NSLog(@"F6rBNomJj18XuzkYi3G");
  121. NSLog(@"LB6IxEk9cjl");
  122. NSLog(@"5LWS7vuI9JXjTxA2PcE3t");
  123. NSLog(@"OFnMoDdaIsL1vKWbcAiUP3Vru7B");
  124. NSLog(@"SbKN8qLyZnC3xt5rJcRQsoPAz");
  125. NSLog(@"HjYmuo0aRK5ztwCcT7qsVM1vIBdgkLhJGO9x3Z");
  126. NSLog(@"d4XpxTEKgHysaS0WJZAGlNw");
  127. NSLog(@"waem6unE0PyK5sC9tWiXbVAlJk8Bx");
  128. }
  129. -(void)a5PM4:(UIFontWeight*) a5PM4 aYm5aoTI:(UIButton*) aYm5aoTI a1qImE:(UIImage*) a1qImE aFP24A:(UIViewController*) aFP24A a0lMK:(UIDocument*) a0lMK aShg5blQs:(UIView*) aShg5blQs aGoxztwp:(UIUserInterfaceIdiom*) aGoxztwp aqwETF:(UIControl*) aqwETF aPtSYEp0ueA:(UICollectionView*) aPtSYEp0ueA a5JtcIZU1gP:(UIControl*) a5JtcIZU1gP aGINaWpvJ:(UIFontWeight*) aGINaWpvJ aBFSGgL3neC:(UIInputView*) aBFSGgL3neC ajT5Oq:(UISearchBar*) ajT5Oq aEHWP7:(UIApplication*) aEHWP7 atCISRPV:(UIMotionEffect*) atCISRPV aiV3ek7R8n:(UIViewController*) aiV3ek7R8n {
  130. NSLog(@"xUQznfBMVie5");
  131. NSLog(@"voGm5J483BlWu1xM97YzsTZSVaRg6kCw0dXfNrQe");
  132. NSLog(@"XW1PCmlAhBJ67s0L");
  133. NSLog(@"UG82mZR5xCjn9fW4wIbOyteFE7");
  134. NSLog(@"aAUYjognQEq30P9ZK6ihW");
  135. NSLog(@"h13MDpGjOyZUKJeiWac62AVfI5dozQXPl");
  136. NSLog(@"6DCbIQEzteacBn");
  137. NSLog(@"TvWU7G4f30NJ8YDA");
  138. NSLog(@"3Qfw8OYgiZRaG");
  139. NSLog(@"szRMNBh1bkGmF");
  140. NSLog(@"0l7DvQCpGkXizW241bPeqNV8L");
  141. NSLog(@"y5cXSR8Tsu4MQ0fNzdw2v3g");
  142. NSLog(@"WtheNTALf0CUiKXY");
  143. NSLog(@"QYv8j7Upzs");
  144. NSLog(@"bPV8xAFl4fhYiNTUaHpgBrMj12eS");
  145. }
  146. -(void)aJ4BK:(UIFont*) aJ4BK aQ8pEjH:(UITableView*) aQ8pEjH aqzAt4Z1:(UICollectionView*) aqzAt4Z1 ak3PTE:(UIInputView*) ak3PTE ah4ypobS:(UIControlEvents*) ah4ypobS ah3tBCzDJRv:(UIColor*) ah3tBCzDJRv a4mf6A:(UIBarButtonItem*) a4mf6A a0JYV94Xb:(UITableView*) a0JYV94Xb aclbiywp:(UIVisualEffectView*) aclbiywp ayqIx:(UIKeyCommand*) ayqIx aidUNMp6wHO:(UIDevice*) aidUNMp6wHO ap6e10H:(UIBezierPath*) ap6e10H auOvM:(UISwitch*) auOvM a1OWmVl:(UIBarButtonItem*) a1OWmVl aF9NW5jGob:(UIImage*) aF9NW5jGob a23uc7NZRoL:(UIBarButtonItem*) a23uc7NZRoL {
  147. NSLog(@"8O0HZpK3wdC4FgMzXhkAD");
  148. NSLog(@"nJXCSM79dDBvxKFlYyk0gpeWmf4N6hL8oPA2");
  149. NSLog(@"dVlw0hCeBPnbSYRMWQX89zyci462Jk");
  150. NSLog(@"wuP8eqoC2bAV0Zl1zNakjWUfhrJcX4TmB6Y");
  151. NSLog(@"LhzsQPw1b2XDBIY");
  152. NSLog(@"nwEFxXAIpkTyCvVPcG9zogO04Ja5QKMZNrqUbdms");
  153. NSLog(@"B04geRZqXaokS9CyJND");
  154. NSLog(@"F9bIyVlmrLqx5RJS");
  155. NSLog(@"Hi39AdfGwC8RZTjglWhrkXM5eVB7PUIczSE");
  156. NSLog(@"qyj1WDL8OziBpafEvSRmx6r0Ks");
  157. NSLog(@"gMWoktPa4hvmyH");
  158. }
  159. -(void)a79l1Ih4:(UIImageView*) a79l1Ih4 auhpr:(UIImage*) auhpr amsh0I:(UIKeyCommand*) amsh0I arsnxNW:(UIFont*) arsnxNW atdzrCV8x:(UIMenuItem*) atdzrCV8x acZ6C9z:(UIEdgeInsets*) acZ6C9z adsRTP:(UIBarButtonItem*) adsRTP aKYag:(UIControl*) aKYag aLDelnOCB:(UIViewController*) aLDelnOCB a6IN29YR:(UIDocument*) a6IN29YR asmvhz:(UIControlEvents*) asmvhz aJBVqIE:(UIFontWeight*) aJBVqIE ahdeqzR:(UIControl*) ahdeqzR aRr7eGIL4u2:(UIButton*) aRr7eGIL4u2 a8NQgGJXpo:(UIViewController*) a8NQgGJXpo aHPfJwXC2B:(UIAlertView*) aHPfJwXC2B a1chye:(UISwitch*) a1chye aSBXVi:(UIMenuItem*) aSBXVi adTp48I1G:(UIButton*) adTp48I1G {
  160. NSLog(@"3ehL9CXGj85q");
  161. NSLog(@"0fZKF5MAih7Wd6TPqHbmaIDOXkJpjlY");
  162. NSLog(@"paBfvCcjULYPu2");
  163. NSLog(@"sjuD6baUAKX4k");
  164. NSLog(@"6LzokQY1S7");
  165. NSLog(@"xUIgBCSnsZ2ohKJFRO");
  166. NSLog(@"4RwOt7eMTqdcIxyANKl2h5sPbgr1EH39Z");
  167. NSLog(@"0t4bqT59zVUCmxGOIMlnAWkRfKSXg82hFyoNvrs");
  168. NSLog(@"fZFp6Rq1JP2lUbaEHTMxNk9");
  169. NSLog(@"1nOa60K5UloVMNsDL");
  170. NSLog(@"g0AVNk54OfKnQ8E");
  171. NSLog(@"X6dv5JcK0hsqS9Up");
  172. NSLog(@"YAvtPLs63DFVlMm9aWn5UEe");
  173. NSLog(@"HPM5mFWjJyUXz3x");
  174. NSLog(@"kmMGYuDJLeQgx356iZhRBNsXW2PEVd");
  175. NSLog(@"julRCY7QrJX3tqUTcAOMfKVmakFZwESz8DPgh");
  176. NSLog(@"sMOLQSzcdeKVnkHCyJ1rlqZ9");
  177. NSLog(@"4kPUJezx1v0FqospHXcw7D8gKanN5u2TrRlW6VI");
  178. }
  179. -(void)aDLTo:(UIControlEvents*) aDLTo a3EXoRL4Fl:(UIEdgeInsets*) a3EXoRL4Fl azuFZGP3gS:(UIFontWeight*) azuFZGP3gS auJf0Rp8aM:(UILabel*) auJf0Rp8aM afZniP2Ddp:(UIImage*) afZniP2Ddp afrHc7lTFd:(UIInputView*) afrHc7lTFd aB6ENK:(UITableView*) aB6ENK aoVY9Zm:(UIBarButtonItem*) aoVY9Zm aIcZsEx7:(UIAlertView*) aIcZsEx7 alYIE:(UIMenuItem*) alYIE aNlAyiIrM0:(UIControlEvents*) aNlAyiIrM0 agAjTNiJk:(UIColor*) agAjTNiJk {
  180. NSLog(@"OXvExz2V1Gd7");
  181. NSLog(@"wgNlY2KXfHjky8JD3MS74L5rsBbCF");
  182. NSLog(@"tIR08hArT9Cyzv4mSleL6DQUjw7cOXNaMfkHsoK5");
  183. NSLog(@"MPFlU3LD05BzJjpVvurK");
  184. NSLog(@"GWYUgin6wouMJL5HVast043rDITmEhBdc8eC");
  185. NSLog(@"knov0QVKACFZD23RmyuaJTbG");
  186. NSLog(@"YzFdH6RbUi2WMsK4paXje3kOZSwPnCqhx9GDym");
  187. NSLog(@"bcky8AjFd2GLTv05DJMBfx");
  188. NSLog(@"hRzN8yM4VoG2EWe0vLAalsP91Ugn");
  189. NSLog(@"AmQFzZs6WVuBqTUjnCgwDOarG0ISNbMd45");
  190. NSLog(@"2JNXAbUR7OjD3k8L5PeovidIrl");
  191. NSLog(@"scqN9AZ8igGwh7");
  192. NSLog(@"QyaFMJhVOuidU7pHf9gebZDvorPI2WK305n1E");
  193. NSLog(@"6bstfcehDY09ZpXKQkNL8jrWTI");
  194. NSLog(@"rhgUl8uwL157jdQZP6atBebWEpDRKoGAkv3s");
  195. NSLog(@"ZSk3iQTphVYf9sCWE");
  196. NSLog(@"WBs7oC3zUaryZYGv4TiRPpxAjgILlQmNd96VJXn");
  197. NSLog(@"TaZbrM3w8dICJFGcjQB0WyUANLh");
  198. NSLog(@"tlZITu6rKeY");
  199. }
  200. -(void)aS26tBJEaCw:(UIScreen*) aS26tBJEaCw af1gOjlZ:(UIFont*) af1gOjlZ aV1HnM:(UIBezierPath*) aV1HnM aJA8P1fvk:(UIUserInterfaceIdiom*) aJA8P1fvk a8yz1me7:(UIScreen*) a8yz1me7 aSOJqrZx:(UIAlertView*) aSOJqrZx arq0w:(UIEvent*) arq0w {
  201. NSLog(@"ZoB1JRCOFsETAerL3l5VU");
  202. NSLog(@"IUzln0tKGkF");
  203. NSLog(@"3lg9NJFY0kZ5L2IUGjuS6heby7c");
  204. NSLog(@"zvlcr4JegBA6T2dma0InfWQEyZow3UD81KXVM9");
  205. NSLog(@"gMpx3ho2RAdvOnIDHw1r5TtQ7flYa9yV8ke");
  206. NSLog(@"SxwrhafVgMEye5U8zs");
  207. NSLog(@"eDmnpbEzOBRgrXa1xjhdJikF5");
  208. NSLog(@"n4OaWfeLtgB6V9A0DbJ3SFlxHNZQ");
  209. NSLog(@"uPjKzZJVIYGp1kiAH90wO7txbUrqFT");
  210. NSLog(@"1hr3id7toLIm9yBpFxWq2TgUNaOCPKjfwlZvc6Xe");
  211. NSLog(@"CRcZErlUhSexJbqg3aG");
  212. NSLog(@"wpJfB4jRAZCHSiFy1eocxDtXWgOV6ln3mb");
  213. }
  214. @end