ideashower / ShareKit

Drop in sharing features for all iPhone and iPad apps
http://getsharekit.com
1.79k stars 377 forks source link

crashes on press #370

Open benklinger opened 11 years ago

benklinger commented 11 years ago

Hi, I'm new at this so I tried my best, please bare with me.

I've installed ShareKit and ran it afterwards without errors. I then added MySHKConfigurator.h and MySHKConfigurator.m to my projects, and added them as a subclass of DefaultSHKConfigurator. I filled in my api keys for Facebook and twitter.

I added the implementation code in my appDelegate, and also had to add #import "MySHKConfigurator.h" and #import "SHKConfiguration.h".

When adding the sample code for the method, I got a small error with the URL. I bypassed it and used: SHKItem *item = [SHKItem URL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=3t8MeE8Ik4Y"] title:@"Big bang" contentType:SHKURLContentTypeVideo];

Also, had to change the actionsheet and add a self.navigationController.toolbar to it.

At this stage, I get no errors and can compile, but when pressing the button I get the following error: 2012-07-19 12:29:19.393 Manifold[43266:15e03] *** Assertion failure in -[SHKActionSheet _presentSheetFromView:above:], /SourceCache/UIKit_Sim/UIKit-1914.84/UIActionSheet.m:1747 2012-07-19 12:29:19.413 Manifold[43266:15e03] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: view != nil' *** First throw call stack: (0x1b02022 0x254dcd6 0x1aaaa48 0x15032cb 0xf35039 0xf3535f 0xf409af 0xf4317f 0x323e 0x1b03e99 0xb6f14e 0xdada0e 0x1b03e99 0xb6f14e 0xb6f0e6 0xc15ade 0xc15fa7 0xc15266 0xb943c0 0xb945e6 0xb7adc4 0xb6e634 0x29ceef5 0x1ad6195 0x1a3aff2 0x1a398da 0x1a38d84 0x1a38c9b 0x29cd7d8 0x29cd88a 0xb6c626 0x2d2d 0x2c95) terminate called throwing an exception

any help would be appreciated. Thanks.