Closed BlipGit closed 7 years ago
Thanks for letting us know.
We are calling [[UIApplication sharedApplication].delegate.window addSubview:...
when showing notifications. Maybe there is something we can improve in a future release.
For now, could you check if adding a window property to your controller fixes the issue?
Thanks. Adding a window property (to expose my existing mpMainWindow variable) has fixed the problem.
With regards to future improvements, maybe it would be helpful for LinkKit to check if the property/selector exists at start up (using respondsToSelector:) and report in the output window if it doesn't.
I'm mainly a C++ developer (the app's 95% C++) so I've tended to use my C++ naming conventions on the few Obj-C classes I use to help me understand it. Maybe this was a stupid idea and it's just a natural assumption in the Obj-C world that UIApplication will always have a window property ...
I'm integrating LinkKit into my iOS app, but I find that as soon as LinkKit wants to show a notification (eg. when a peer connects or disconnects) the app crashes with the following output:
Here's the callstack (I've edited for brevity):
AppController is the main UIApplication class, specified in main:
UIApplicationMain(argc, argv, nil, @"AppController");
... and declared like this:
Any ideas about the selector -[ABLLinkNotificationView init] may be attempting to call?