ios - UIView disappears after calling UIActivityViewController -


i have 2 subviews in view controller, both embedded in uiscrollview. 1 of them subclass of uiview , other created in interface builder buttons etc in it, referenced view controller...

i use share button call uiactivityviewcontroller works fine. problem when tap on facebook/twitter , share image(which works fine) - goes away when return uiview created in ib not visible, nor of buttons/elements etc.

i did nslog in completion handler uiactivity , still exists, not hidden, , count of subviews returns 19. check frame fine have no idea why not showing.

any appreciated!

nsstring *texttopost = @"text post"; uiimage *animage = [self.player imageofview]; nsarray *activityitems = @[texttopost, animage];  uiactivityviewcontroller *activityvc = [[uiactivityviewcontroller alloc]initwithactivityitems:activityitems applicationactivities:nil]; activityvc.excludedactivitytypes = @[uiactivitytypeprint];   [self presentviewcontroller:activityvc animated:yes completion:nil]; [activityvc setcompletionhandler:^(nsstring *activitytype, bool completed) {     nslog(@"input view status %i/n number of subviews%i", self.inputview.hidden, [self.inputview.subviews count]);     nslog(@"%@", nsstringfromcgrect(self.inputview.frame));   }]; 

output:

input view status 0/n number of subviews19 {{0, 0}, {320, 438}}

well if there may subview hides other view try bringsubviewtofront: may helps you.

    [yourview bringsubviewtofront:self.view]; 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -