objective c - Custom UIActivity ViewController Background Image Transparency Doesn't Work -
- (uiviewcontroller *)activityviewcontroller
i created custom uiactivity returns view controller displays popup. allows user editing before performing actual activity.
with ios below 8, background transparency looks overlay works (i can see game underneath) after updating ios8, background becomes solid color gray. checked uiimageview displaying overlay image alpha , set clear. can tell me why background becomes solid? couldn't see view of game underneath anymore.
here's code:
- (ibaction)didpresssharebutton:(id)sender { ... [_rootviewcontroller presentviewcontroller:[self getactivityviewcontroller] animated:yes completion:nil]; ... }
the _rootviewcontroller main view controller of application. [self getactivityviewcontroller] returns instance of uiactivityviewcontroller includes custom uiactivity instagram
my instagramuiactivity overrides function homecoming custom viewcontroller (see attached image)
- (uiviewcontroller *)activityviewcontroller { dismissalac = [[instagramdismissal alloc]init]; presentationac = [[instagrampresentation alloc]init]; instagramvc = [[instagramviewcontroller alloc]initwithinstagramphoto:_instagramphoto]; instagramvc.delegate = self; if ([instagramvc respondstoselector:@selector(settransitioningdelegate:)]) { instagramvc.transitioningdelegate = self; } homecoming instagramvc; }
dismissalac , presentationac objects implement uiviewcontrolleranimatedtransitioning
protocol have own transition animation.
when homecoming custom view controller, pops along view white background. don't know why.
try
instagramvc.modalpresentationstyle = uimodalpresentationoverfullscreen;
or
instagramvc.modalpresentationstyle = uimodalpresentationovercurrentcontext;
objective-c ios8 xcode6 uiactivityviewcontroller uiactivity
No comments:
Post a Comment