Comments (26)
Like quard8 said, set the project - > BuildPhases - > LinkBinaryWithLibraries, add 'DZNEmptyDataSet.a', everything works as usual.
from dznemptydataset.
You will need to give me a bit more of info about that crash. Can you paste the crash log?
from dznemptydataset.
Right now I cannot generate it again, because I transformed it from tableView to tableViewController and works correctly. From what I remember it was when I was setting up the delegate
self.tableView.emptyDataSetDelegate = self;
and the crash was as I pointed out on my opened issue.
from dznemptydataset.
This works fine for me when I set the emptySetDelegate for my tableView IBOutlet.
from dznemptydataset.
I created a fresh project with a programmatic tableView, and it works without crashing.
IDK why would could have been caused.
from dznemptydataset.
Closing this for now, since I wasn't reproducible.
from dznemptydataset.
Hello,
I re-open this issue because I'have exactly the same problem when I run my project on device I got this error:-[UITableView setEmptyDataSetSource:]: unrecognized selector sent to instance 0x150b6e00'
Thank You !
from dznemptydataset.
Same problem for me. Everything works great before I updated to latest version.
0xc246200
2014-08-17 21:09:23.993 WhereIsMusic[96293:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView setEmptyDataSetSource:]: unrecognized selector sent to instance 0xc246200'
*** First throw call stack:
(
0 CoreFoundation 0x02fd11e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x028198e5 objc_exception_throw + 44
2 CoreFoundation 0x0306e243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x02fc150b ___forwarding___ + 1019
4 CoreFoundation 0x02fc10ee _CF_forwarding_prep_0 + 14
5 WhereIsMusic 0x0000c0f2 -[QViewController viewDidLoad] + 2146
6 UIKit 0x00c0933d -[UIViewController loadViewIfRequired] + 696
7 UIKit 0x00c095d9 -[UIViewController view] + 35
8 UIKit 0x00c34509 -[UINavigationController rotatingSnapshotViewForWindow:] + 52
9 UIKit 0x00f7be3c -[UIClientRotationContext initWithClient:toOrientation:duration:andWindow:] + 420
10 UIKit 0x00b30c22 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 1495
11 UIKit 0x00b30646 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 82
12 UIKit 0x00b30518 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 117
13 UIKit 0x00b305a0 -[UIWindow _setRotatableViewOrientation:duration:force:] + 67
14 UIKit 0x00b2f63a __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 120
15 UIKit 0x00b2f59c -[UIWindow _updateToInterfaceOrientation:duration:force:] + 400
16 UIKit 0x00b302f3 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 870
17 UIKit 0x00b338e6 -[UIWindow setDelegate:] + 449
18 UIKit 0x00c0db77 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 180
19 UIKit 0x00b29474 -[UIWindow addRootViewControllerViewIfPossible] + 591
20 UIKit 0x00b295ef -[UIWindow _setHidden:forced:] + 312
21 UIKit 0x00b2986b -[UIWindow _orderFrontWithoutMakingKey] + 49
22 UIKit 0x00b343c8 -[UIWindow makeKeyAndVisible] + 65
23 UIKit 0x00ae4bc0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 2097
24 UIKit 0x00ae9667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
25 UIKit 0x00afdf92 -[UIApplication handleEvent:withNewEvent:] + 3517
26 UIKit 0x00afe555 -[UIApplication sendEvent:] + 85
27 UIKit 0x00aeb250 _UIApplicationHandleEvent + 683
28 GraphicsServices 0x03d9df02 _PurpleEventCallback + 776
29 GraphicsServices 0x03d9da0d PurpleEventCallback + 46
30 CoreFoundation 0x02f4cca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
31 CoreFoundation 0x02f4c9db __CFRunLoopDoSource1 + 523
32 CoreFoundation 0x02f7768c __CFRunLoopRun + 2156
33 CoreFoundation 0x02f769d3 CFRunLoopRunSpecific + 467
34 CoreFoundation 0x02f767eb CFRunLoopRunInMode + 123
35 UIKit 0x00ae8d9c -[UIApplication _run] + 840
36 UIKit 0x00aeaf9b UIApplicationMain + 1225
37 WhereIsMusic 0x000061ad main + 141
38 libdyld.dylib 0x0418a701 start + 1
39 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
from dznemptydataset.
When are you setting the emptyDataSetSource
?
I can't seem to understand why would this happen, and I haven't been able to repro. Sorry.
from dznemptydataset.
In viewDidLoad
I have simple UIViewController with UITableView in it.
from dznemptydataset.
Are you able to reproduce it? Does it happen all the time?
from dznemptydataset.
Yeah, after update, problem is permanent :)
from dznemptydataset.
Can you share a gist of your entire view controller implementation?
from dznemptydataset.
I will remove unnecessary information and publish gist
from dznemptydataset.
Well, https://gist.github.com/quard8/4e93cc43af0e67538c23 I stripped everything and still have exception
from dznemptydataset.
Thanks, will take a look soon ;)
from dznemptydataset.
Hello I had the same issue last week and I was able to solve it by simply reinstalling the pod
from dznemptydataset.
@Mike77S just reinstalled pod, still have exception.
Which version do you use?
from dznemptydataset.
Just found solution.
I decided to use Parse analytics and removed -ObjC from linker flags (as installation docs required)
After I added -ObjC flag back, everything works as usual.
from dznemptydataset.
That's great to hear! This lib uses objc runtime APIs, so that would explain to selector not being found since it creates an object association (only way to using setters and getters in objc category classes).
Will close this now then.
from dznemptydataset.
Please add note to readme file ;)
from dznemptydataset.
Good idea
from dznemptydataset.
I just updated to XCode 7 beta (for Swift 2) and I've started running into this problem. I've tried adding the -ObjC
flag to Other Linker Flags
, but that doesn't seem to make a difference. Any ideas? Here's the error:
2015-08-31 16:52:19.001 Test[94193:12168061] -[UITableView emptyDataSetSource]: unrecognized selector sent to instance 0xe08b400
2015-08-31 16:52:19.006 Test[94193:12168061] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView emptyDataSetSource]: unrecognized selector sent to instance 0xe08b400'
*** First throw call stack:
(
0 CoreFoundation 0x0260a3b4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x020c9e02 objc_exception_throw + 50
2 CoreFoundation 0x02613703 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x0255176d ___forwarding___ + 1037
4 CoreFoundation 0x0255133e _CF_forwarding_prep_0 + 14
5 Test 0x000093a8 _TFC6Test20MasterViewController21viewDidLayoutSubviewsfS0_FT_T_ + 280
6 Test 0x00009762 _TToFC6Test20MasterViewController21viewDidLayoutSubviewsfS0_FT_T_ + 34
7 UIKit 0x02b129db -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 901
8 libobjc.A.dylib 0x020de059 -[NSObject performSelector:withObject:] + 70
9 QuartzCore 0x07df960c -[CALayer layoutSublayers] + 144
10 QuartzCore 0x07ded28e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 388
11 QuartzCore 0x07ded0f2 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
12 QuartzCore 0x07ddfc2b _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 317
13 QuartzCore 0x07e13c23 _ZN2CA11Transaction6commitEv + 589
14 QuartzCore 0x07e144d6 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
15 CoreFoundation 0x025240ae __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
16 CoreFoundation 0x0252400e __CFRunLoopDoObservers + 398
17 CoreFoundation 0x025191b8 CFRunLoopRunSpecific + 504
18 CoreFoundation 0x02518fab CFRunLoopRunInMode + 123
19 UIKit 0x02a4bf8f -[UIApplication _run] + 540
20 UIKit 0x02a51724 UIApplicationMain + 160
21 Test 0x0000f0bc main + 140
22 libdyld.dylib 0x0447ba21 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
from dznemptydataset.
The same problem appears.I also have added the -ObjC flag to Other Linker Flags.
The ViewController is TableViewController.
This is my code:
- (void)viewDidLoad {
[super viewDidLoad];
[self.tableView setEmptyDataSetDelegate:self];
[self.tableView setEmptyDataSetSource: self];
}
But still have this exception:
-[UITableView setEmptyDataSetDelegate:]: unrecognized selector sent to instance 0x7f908108ec00.
How can I solve it?
from dznemptydataset.
Getting this permanently now on 1.7.3
_EDIT: So it turns out my DZNEmptyDataSet is installed empty. The project compiles though without an error. Removed the pod and reinstalled and now I'm getting this cocoapod warning. Folder still empty_
[!] Unable to read the license file /Users/AceGreen/Dropbox/iOS/Xcode Projects/StockSwipe/Pods/DZNEmptyDataSet/LICENSE
for the spec DZNEmptyDataSet (1.7.3)
_EDIT 2: This seems to be a problem with V1.7.3 and downgrading to 1.7.2 solves the empty folder and ultimately the above error_
from dznemptydataset.
so good
from dznemptydataset.
Related Issues (20)
- Crash DZNEmptyDataSet HOT 1
- emptyView beyond current window
- Blank page display error on TableView or CollectionView
- SwiftPM Support / swift package init HOT 1
- 自定义空白占位图不显示 HOT 1
- Create a new release to make SPM take effect HOT 4
- customer HOT 1
- 刷新导致奔溃的问题 -[UIScrollView(DZNEmptyDataSet) dzn_reloadEmptyDataSet] HOT 6
- Wrong offset of empty data view position. HOT 3
- About the custom view cannot respond to the click event HOT 2
- support swift 5 ? HOT 1
- UITapGestureRecognizer cannot work in customView HOT 2
- 滚动一段距离y,再刷新,刚好数据为空,这时占位图也会偏移y,解决方法如下: HOT 2
- EmptyDataSetView fadeIn Animation is not working (fadeInOnDisplay should be set before the view is added into his superview so that the fade in animation can be applied.) HOT 1
- App crashed with unrecognized selector setClaCustomViewVisible
- tableViewHeader may be covered
- Is there a swift version
- SPM defaults to v1.8.1, but that version has no Package.swift HOT 5
- DetailLabel and TitleLabel layout is NOT set well HOT 1
- offset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dznemptydataset.