Skip to content

Commit

Permalink
Background not transparent when using iPad and forcing DEFacebookComp…
Browse files Browse the repository at this point in the history
…oseViewController custom view
  • Loading branch information
romaonthego committed May 15, 2013
1 parent a1d8254 commit 7711a0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion REActivityViewController/REFacebookActivity.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ - (id)init
- (void)shareFromViewController:(UIViewController *)viewController text:(NSString *)text url:(NSURL *)url image:(UIImage *)image
{
DEFacebookComposeViewController *facebookViewComposer = [[DEFacebookComposeViewController alloc] init];
viewController.modalPresentationStyle = UIModalPresentationCurrentContext;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
viewController.modalPresentationStyle = UIModalPresentationCurrentContext;
else
[UIApplication sharedApplication].delegate.window.rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext;

if (text)
[facebookViewComposer setInitialText:text];
if (url)
Expand Down

0 comments on commit 7711a0a

Please sign in to comment.