Giter Club home page Giter Club logo

Comments (26)

jinxiaodou avatar jinxiaodou commented on June 16, 2024 2

Like quard8 said, set the project - > BuildPhases - > LinkBinaryWithLibraries, add 'DZNEmptyDataSet.a', everything works as usual.

from dznemptydataset.

dzenbot avatar dzenbot commented on June 16, 2024

You will need to give me a bit more of info about that crash. Can you paste the crash log?

from dznemptydataset.

eridbardhaj avatar eridbardhaj commented on June 16, 2024

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.

francislata-zz avatar francislata-zz commented on June 16, 2024

This works fine for me when I set the emptySetDelegate for my tableView IBOutlet.

from dznemptydataset.

dzenbot avatar dzenbot commented on June 16, 2024

I created a fresh project with a programmatic tableView, and it works without crashing.
IDK why would could have been caused.

from dznemptydataset.

dzenbot avatar dzenbot commented on June 16, 2024

Closing this for now, since I wasn't reproducible.

from dznemptydataset.

Mike77S avatar Mike77S commented on June 16, 2024

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.

quard8 avatar quard8 commented on June 16, 2024

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.

dzenbot avatar dzenbot commented on June 16, 2024

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.

quard8 avatar quard8 commented on June 16, 2024

In viewDidLoad

I have simple UIViewController with UITableView in it.

from dznemptydataset.

dzenbot avatar dzenbot commented on June 16, 2024

Are you able to reproduce it? Does it happen all the time?

from dznemptydataset.

quard8 avatar quard8 commented on June 16, 2024

Yeah, after update, problem is permanent :)

from dznemptydataset.

dzenbot avatar dzenbot commented on June 16, 2024

Can you share a gist of your entire view controller implementation?

from dznemptydataset.

quard8 avatar quard8 commented on June 16, 2024

I will remove unnecessary information and publish gist

from dznemptydataset.

quard8 avatar quard8 commented on June 16, 2024

Well, https://gist.github.com/quard8/4e93cc43af0e67538c23 I stripped everything and still have exception

from dznemptydataset.

dzenbot avatar dzenbot commented on June 16, 2024

Thanks, will take a look soon ;)

from dznemptydataset.

Mike77S avatar Mike77S commented on June 16, 2024

Hello I had the same issue last week and I was able to solve it by simply reinstalling the pod

from dznemptydataset.

quard8 avatar quard8 commented on June 16, 2024

@Mike77S just reinstalled pod, still have exception.

Which version do you use?

from dznemptydataset.

quard8 avatar quard8 commented on June 16, 2024

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.

dzenbot avatar dzenbot commented on June 16, 2024

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.

quard8 avatar quard8 commented on June 16, 2024

Please add note to readme file ;)

from dznemptydataset.

dzenbot avatar dzenbot commented on June 16, 2024

Good idea

from dznemptydataset.

jprider63 avatar jprider63 commented on June 16, 2024

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.

mydy1987 avatar mydy1987 commented on June 16, 2024

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.

acegreen avatar acegreen commented on June 16, 2024

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.

kaiverSmart avatar kaiverSmart commented on June 16, 2024

so good

from dznemptydataset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.