sofach / sfpullrefresh Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
如果在继承UITableVIewController 的试图上加下啦刷新 从这个界面进入下一界面再回来 再进入到下一界面 会creash
2015-10-07 17:46:32.634 SFPullRefresh[17245:263139] *** Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <SFPullRefreshContext 0x7fc65372ad90> for the key path "contentSize" from <UITableView 0x7fc653812600> because it is not registered as an observer.'
[[UINavigationBar appearance] setTranslucent:NO];
更改NavigationBar的属性之后
[self.tableView sf_addRefreshHandler:^{
}];
这个方法不会调用了
SFPullRefresh does not save original contentInset.bottom, so it will set to 0 after load more finished
I get following crash message:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UILabel sf_willMoveToSuperview:]: unrecognized selector sent to instance 0x7f93785cedb0'
*** First throw call stack:
(
0 CoreFoundation 0x000000010bc28c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010b8c1bb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010bc300ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010bb8613c ___forwarding___ + 988
4 CoreFoundation 0x000000010bb85cd8 _CF_forwarding_prep_0 + 120
5 yjj 0x0000000108b311ce -[UIScrollView(SFPullRefresh) sf_willMoveToSuperview:] + 62
6 UIKit 0x000000010a672a6f -[UIView(Internal) _addSubview:positioned:relativeTo:] + 483
7 yjj 0x0000000108b2d54e -[SFLoadMoreControl setup] + 686
8 yjj 0x0000000108b2d270 -[SFLoadMoreControl initWithFrame:] + 304
9 yjj 0x0000000108b30e44 -[UIScrollView(SFPullRefresh) sf_addLoadMoreHandler:customLoadMoreControl:position:] + 612
10 yjj 0x0000000108b30ba9 -[UIScrollView(SFPullRefresh) sf_addLoadMoreHandler:customLoadMoreControl:] + 105
11 yjj 0x0000000108b30b20 -[UIScrollView(SFPullRefresh) sf_addLoadMoreHandler:] + 64
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.