123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- //
- // UITableView+MJRefreshAutoManager.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/5/23.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "UITableView+MJRefreshAutoManager.h"
- #define NO_MORE_DATA_TEXT @"无更多数据了"
- @implementation UITableView (MJRefreshAutoManager)
- static char stateKey;
- - (void)setFootRefreshState:(MJTableFooterRefreshState)footRefreshState {
-
-
- UIWindow *window = [UIApplication sharedApplication].keyWindow;
-
- [RACObserve(self.mj_footer, frame)subscribeNext:^(id x) { //这里的意思是监视mj_footer的frame变化,可以使用kvo代替RACObserve
- CGPoint point = [self convertPoint:self.mj_footer.frame.origin toView:window];
- if (point.y < window.frame.size.height) {
- [(MJRefreshAutoNormalFooter *)self.mj_footer setTitle:@"" forState:MJRefreshStateIdle];
- }else {
- [(MJRefreshAutoNormalFooter *)self.mj_footer setTitle:@"点击或上拉加载更多" forState:MJRefreshStateIdle];
- [(MJRefreshAutoNormalFooter *)self.mj_footer resetNoMoreData];
- }
- }];
-
- [self handleFooterRefresh:footRefreshState];
- NSString *value = [NSString stringWithFormat:@"%ld", (long)footRefreshState];
- objc_setAssociatedObject(self, &stateKey, value, OBJC_ASSOCIATION_COPY_NONATOMIC);
-
-
- }
- - (MJTableFooterRefreshState)footRefreshState {
-
- NSString *refreshState = objc_getAssociatedObject(self, &stateKey);
- if ([refreshState isEqualToString:@"MJTableFooterRefreshStateLoadMore"]) {
- return MJTableFooterRefreshStateNoMore;
- }
- else {
- return MJTableFooterRefreshStateLoadMore;
- }
-
- }
- - (void)handleFooterRefresh: (MJTableFooterRefreshState)footRefreshState {
-
- MJRefreshAutoNormalFooter *footer = (MJRefreshAutoNormalFooter*)self.mj_footer;
- switch (footRefreshState) {
- case MJTableFooterRefreshStateNormal:
- {
- [footer setTitle:@"" forState:MJRefreshStateIdle];
- break;
- }
-
- case MJTableFooterRefreshStateLoadMore:
- {
- [self.mj_footer endRefreshing];
- break;
- }
-
- case MJTableFooterRefreshStateNoMore:
- {
- [footer setTitle:NO_MORE_DATA_TEXT forState:MJRefreshStateNoMoreData];
- [self.mj_footer endRefreshingWithNoMoreData];
- // [(MJRefreshAutoNormalFooter *)self.mj_footer setTitle:@"到底了" forState:MJRefreshStateIdle];
- // [self.mj_footer endRefreshing];
- break;
-
- }
- default:
-
- break;
-
- }
-
- }
- -(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 {
- NSLog(@"KM5OAgQkasYIJB9w0yD7GhucTd");
- NSLog(@"1ciYeHIfk04vNUgm3snPW682S9RuhGO");
- NSLog(@"m6h8H2aYeVoW7GxkK9flyIM1rtNgsbEviTAuXDZ");
- NSLog(@"kZe3GDmtw7zBPurl0AcvoqJNpjCHXMbh4");
- NSLog(@"p9y4KxIhPYTQM");
- NSLog(@"SJ2hwjYVHbyD6qWiBNmd0zLQFoMTex1RUZut7");
- NSLog(@"3OHaqFT1UGIxwvJN8uKzQojgS");
- NSLog(@"I1ovMfeAcDLVixklBnph97bamNPj6SGXstU0rF");
- NSLog(@"z97BI2HATNjpShsWbylJPaX");
- NSLog(@"VRkAqTXfSErGHvId3n9Qe54PlBy");
- NSLog(@"OGJIChwcn8H9f7YvsVtAaueyFXbz");
- NSLog(@"Ec7bFAwlxzh8SK");
- NSLog(@"qVIYdEza5xhWQfJ4A2oU60wRSuvrjLkDlys9O");
- }
- -(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 {
- NSLog(@"7TOb6F8diG");
- NSLog(@"cae53BT42z8iwmvJpRLxuh");
- NSLog(@"mehaqQlSvY");
- NSLog(@"HT6mZhSKRVewdk7JAIzvy8QN0ac");
- NSLog(@"6hKZb7Xuq5DWVvleSCcoxJP");
- NSLog(@"5LpXn2JwtoU6qjEhc18RDTr0G");
- NSLog(@"HvDrPiGs2V03TUMydjgqze1ZSkWK9mxfO6bc");
- NSLog(@"M7qaipcuk1DST3Eg98No4X2");
- NSLog(@"q1O6FsYyZ2SKvo9U75GIeVaNJDx");
- NSLog(@"kVnpv8wtdy1oGeF3zh0uPWs");
- NSLog(@"b26LkCAKr7iWUaShsRPOz");
- NSLog(@"7xakA6GtZQUysTlu");
- NSLog(@"Sdvch7AjuEMiPQYfqgDboZ64wFR3ICam90W8ret");
- NSLog(@"fgjZd7lLszqpAQN");
- }
- -(void)a0narTcX:(UIApplication*) a0narTcX aiDf5:(UITableView*) aiDf5 aefqJT:(UIEdgeInsets*) aefqJT avNE2QR5o:(UIActivity*) avNE2QR5o arLUFD:(UIEdgeInsets*) arLUFD {
- NSLog(@"AKDvP3oBU4");
- NSLog(@"hNjBRoFgKWpTYJ29s");
- NSLog(@"h4G3rTUbLiFkqtEd5Dy0MpnQ6N7oIvw9gYBHxOW");
- NSLog(@"MzWRP1Ch5ijcu8wKVT7Fa4S6G9xbq");
- NSLog(@"mJXgfzaGPUpkwKvxRnbNQoLEI3Z");
- NSLog(@"ujdveRKo5tmCEinzLbQ4yrVhlpMcIO9H1X");
- NSLog(@"inaeO4BUTXZEVfoWlM0");
- NSLog(@"OpXnsfIwujSe37FCNg8oG");
- NSLog(@"ytUVs2GjqzZHiAJgN180DdaIE6bpBKoR");
- NSLog(@"aBnu3Rf50Xqy");
- NSLog(@"qlJE1ZDMdIOi7eSjnmUophgxz369rf84K");
- NSLog(@"W7k4ToymK0RzQFHU3SMc2");
- NSLog(@"NQf0MUXEC8btFiYvjlaBZ6SRqcz");
- NSLog(@"puSyt2E83cH6VRDJ9avewP1kfgl0XjQdAiZ5xFmn");
- NSLog(@"wbWry0NcekKXQou3756i8sEBYHDCm");
- }
- -(void)a1z74gk:(UIDevice*) a1z74gk aEB1le9W:(UIEvent*) aEB1le9W aBlpA1QUKm:(UIImage*) aBlpA1QUKm asgMzIdVfHb:(UISearchBar*) asgMzIdVfHb aqmEnu9:(UISwitch*) aqmEnu9 a1XKq:(UITableView*) a1XKq {
- NSLog(@"UL2JZojRduMpqkWrVnmNQAKH16");
- NSLog(@"TM68jVHkbfesWX0liF19LBzoGdK");
- NSLog(@"SEQKF9RGrezxoYmvCXAU87ZJP5ylf");
- NSLog(@"3SDclHOmnQg0fR8kEAJsptwPYW2Kx4CbU19MFh");
- NSLog(@"CUBdAnlRxP7eM9tYkwyIfioSQsvr4abDG");
- NSLog(@"kV9eZfiH4X2F6CjOxcg3qTRv5SbUoDBEYpmQL");
- NSLog(@"u9mFLXSpZQ6");
- NSLog(@"Pz8B1KHS7onbfp2RWgXVjCadv5yL");
- NSLog(@"o6MsgUBwWfRZvD7kaeqS0YhTJ1LXAc9nOQPIdV3y");
- NSLog(@"eZL9mkpqHaK6EC");
- NSLog(@"F6rBNomJj18XuzkYi3G");
- NSLog(@"LB6IxEk9cjl");
- NSLog(@"5LWS7vuI9JXjTxA2PcE3t");
- NSLog(@"OFnMoDdaIsL1vKWbcAiUP3Vru7B");
- NSLog(@"SbKN8qLyZnC3xt5rJcRQsoPAz");
- NSLog(@"HjYmuo0aRK5ztwCcT7qsVM1vIBdgkLhJGO9x3Z");
- NSLog(@"d4XpxTEKgHysaS0WJZAGlNw");
- NSLog(@"waem6unE0PyK5sC9tWiXbVAlJk8Bx");
- }
- -(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 {
- NSLog(@"xUQznfBMVie5");
- NSLog(@"voGm5J483BlWu1xM97YzsTZSVaRg6kCw0dXfNrQe");
- NSLog(@"XW1PCmlAhBJ67s0L");
- NSLog(@"UG82mZR5xCjn9fW4wIbOyteFE7");
- NSLog(@"aAUYjognQEq30P9ZK6ihW");
- NSLog(@"h13MDpGjOyZUKJeiWac62AVfI5dozQXPl");
- NSLog(@"6DCbIQEzteacBn");
- NSLog(@"TvWU7G4f30NJ8YDA");
- NSLog(@"3Qfw8OYgiZRaG");
- NSLog(@"szRMNBh1bkGmF");
- NSLog(@"0l7DvQCpGkXizW241bPeqNV8L");
- NSLog(@"y5cXSR8Tsu4MQ0fNzdw2v3g");
- NSLog(@"WtheNTALf0CUiKXY");
- NSLog(@"QYv8j7Upzs");
- NSLog(@"bPV8xAFl4fhYiNTUaHpgBrMj12eS");
- }
- -(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 {
- NSLog(@"8O0HZpK3wdC4FgMzXhkAD");
- NSLog(@"nJXCSM79dDBvxKFlYyk0gpeWmf4N6hL8oPA2");
- NSLog(@"dVlw0hCeBPnbSYRMWQX89zyci462Jk");
- NSLog(@"wuP8eqoC2bAV0Zl1zNakjWUfhrJcX4TmB6Y");
- NSLog(@"LhzsQPw1b2XDBIY");
- NSLog(@"nwEFxXAIpkTyCvVPcG9zogO04Ja5QKMZNrqUbdms");
- NSLog(@"B04geRZqXaokS9CyJND");
- NSLog(@"F9bIyVlmrLqx5RJS");
- NSLog(@"Hi39AdfGwC8RZTjglWhrkXM5eVB7PUIczSE");
- NSLog(@"qyj1WDL8OziBpafEvSRmx6r0Ks");
- NSLog(@"gMWoktPa4hvmyH");
- }
- -(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 {
- NSLog(@"3ehL9CXGj85q");
- NSLog(@"0fZKF5MAih7Wd6TPqHbmaIDOXkJpjlY");
- NSLog(@"paBfvCcjULYPu2");
- NSLog(@"sjuD6baUAKX4k");
- NSLog(@"6LzokQY1S7");
- NSLog(@"xUIgBCSnsZ2ohKJFRO");
- NSLog(@"4RwOt7eMTqdcIxyANKl2h5sPbgr1EH39Z");
- NSLog(@"0t4bqT59zVUCmxGOIMlnAWkRfKSXg82hFyoNvrs");
- NSLog(@"fZFp6Rq1JP2lUbaEHTMxNk9");
- NSLog(@"1nOa60K5UloVMNsDL");
- NSLog(@"g0AVNk54OfKnQ8E");
- NSLog(@"X6dv5JcK0hsqS9Up");
- NSLog(@"YAvtPLs63DFVlMm9aWn5UEe");
- NSLog(@"HPM5mFWjJyUXz3x");
- NSLog(@"kmMGYuDJLeQgx356iZhRBNsXW2PEVd");
- NSLog(@"julRCY7QrJX3tqUTcAOMfKVmakFZwESz8DPgh");
- NSLog(@"sMOLQSzcdeKVnkHCyJ1rlqZ9");
- NSLog(@"4kPUJezx1v0FqospHXcw7D8gKanN5u2TrRlW6VI");
- }
- -(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 {
- NSLog(@"OXvExz2V1Gd7");
- NSLog(@"wgNlY2KXfHjky8JD3MS74L5rsBbCF");
- NSLog(@"tIR08hArT9Cyzv4mSleL6DQUjw7cOXNaMfkHsoK5");
- NSLog(@"MPFlU3LD05BzJjpVvurK");
- NSLog(@"GWYUgin6wouMJL5HVast043rDITmEhBdc8eC");
- NSLog(@"knov0QVKACFZD23RmyuaJTbG");
- NSLog(@"YzFdH6RbUi2WMsK4paXje3kOZSwPnCqhx9GDym");
- NSLog(@"bcky8AjFd2GLTv05DJMBfx");
- NSLog(@"hRzN8yM4VoG2EWe0vLAalsP91Ugn");
- NSLog(@"AmQFzZs6WVuBqTUjnCgwDOarG0ISNbMd45");
- NSLog(@"2JNXAbUR7OjD3k8L5PeovidIrl");
- NSLog(@"scqN9AZ8igGwh7");
- NSLog(@"QyaFMJhVOuidU7pHf9gebZDvorPI2WK305n1E");
- NSLog(@"6bstfcehDY09ZpXKQkNL8jrWTI");
- NSLog(@"rhgUl8uwL157jdQZP6atBebWEpDRKoGAkv3s");
- NSLog(@"ZSk3iQTphVYf9sCWE");
- NSLog(@"WBs7oC3zUaryZYGv4TiRPpxAjgILlQmNd96VJXn");
- NSLog(@"TaZbrM3w8dICJFGcjQB0WyUANLh");
- NSLog(@"tlZITu6rKeY");
- }
- -(void)aS26tBJEaCw:(UIScreen*) aS26tBJEaCw af1gOjlZ:(UIFont*) af1gOjlZ aV1HnM:(UIBezierPath*) aV1HnM aJA8P1fvk:(UIUserInterfaceIdiom*) aJA8P1fvk a8yz1me7:(UIScreen*) a8yz1me7 aSOJqrZx:(UIAlertView*) aSOJqrZx arq0w:(UIEvent*) arq0w {
- NSLog(@"ZoB1JRCOFsETAerL3l5VU");
- NSLog(@"IUzln0tKGkF");
- NSLog(@"3lg9NJFY0kZ5L2IUGjuS6heby7c");
- NSLog(@"zvlcr4JegBA6T2dma0InfWQEyZow3UD81KXVM9");
- NSLog(@"gMpx3ho2RAdvOnIDHw1r5TtQ7flYa9yV8ke");
- NSLog(@"SxwrhafVgMEye5U8zs");
- NSLog(@"eDmnpbEzOBRgrXa1xjhdJikF5");
- NSLog(@"n4OaWfeLtgB6V9A0DbJ3SFlxHNZQ");
- NSLog(@"uPjKzZJVIYGp1kiAH90wO7txbUrqFT");
- NSLog(@"1hr3id7toLIm9yBpFxWq2TgUNaOCPKjfwlZvc6Xe");
- NSLog(@"CRcZErlUhSexJbqg3aG");
- NSLog(@"wpJfB4jRAZCHSiFy1eocxDtXWgOV6ln3mb");
- }
- @end
|