开发者

Email not popping up in Sharekit

Inside the Sharekit 's SHK file, there's a function called ShowViewController which bring the Mailcontroller up.

In SHKMail

[[SHK currentHelper] showViewController:mailController];

In the SHK file

// Show the nav email controller
[topViewController presentModalViewController:vc animated:YES];

vc is the viewcontroller of the Mail.

I checked both the topviewController and vc are valid, however, nothing show up when the email button of the sharekit is cl开发者_Go百科icked.


I tried like this and it was working for me and hope it should work for you as well

-(UIViewController*)getRootViewController{

    return _APPDELEGATE.navigationController;
}

[[SHK currentHelper] setRootViewController:[self getRootViewController]];

[actionSheet showFromToolbar:_APPDELEGATE.navigationController.toolbar];

I do not know why my above code is not working for you.

Okay try this code, should work

SHKItem *item = [SHKItem URL:someNSURL title:@"a title"];

//hack: force SHK to know the root view controller
[[SHK currentHelper] setRootViewController:self];

// Share the item
[SHKMail shareItem:item];

[item release];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜