ios - Facebook UIActivityViewController is Missing the Cancel and Post Buttons -


when app opens facebook uiactivityviewcontroller, there no navigation bar @ top of facebook screen , there no cancel or post button - way exit screen kill app. other apps @ have additional navigation bar @ top of facebook screen, holds cancel , post buttons.

here code using:

        nsurl *url = [nsurl urlwithstring:@"http://www.mywebsite.com"];         nsarray *activityitems = @[url];          // put uiactivityviewcontroller         uiactivityviewcontroller *activityvc = [[uiactivityviewcontroller alloc]                                                 initwithactivityitems:activityitems                                                 applicationactivities:nil];          activityvc.excludedactivitytypes = @[uiactivitytypeprint,                                              uiactivitytypecopytopasteboard,                                              uiactivitytypeassigntocontact,                                              uiactivitytypesavetocameraroll,                                              uiactivitytypeairdrop,                                              uiactivitytypeposttovimeo,                                              uiactivitytypeposttoflickr,                                              uiactivitytypeaddtoreadinglist];          // present uiactivityviewcontroller         [self presentviewcontroller:activityvc                            animated:yes                          completion:nil]; 

the twitter, email, , sms screens appear expected. facebook 1 having problems.

some other notes: notice when open facebook share on app, status bar turn black white text. on test app created, status bar looks grayed-out black text. not sure why / points to, might clue.

this problem seems app-wide, have 3 spots sharing can invoked, , happening in 3 instances.

attaching image. there should navigation bar above "to: public" toolbar.

enter image description here

any ideas appreciated.

i have created new app , copy pasted code on button action. workiing perfectly. can check image of on here: https://drive.google.com/file/d/0b0fncja1n299nwdmzgzqwc1kbza/view?usp=sharing

as per knowledge, if have done [uinavigationbar appearance] in app, , makes problem. please check that.


Comments