ios - Want to perform some action only when the post is successful via UIActivityViewController in iPhone -
i having app in using uiactivityviewcontroller . this code using. nsstring *posttext = @"my text"; nsarray *activityitems = @[posttext]; uiactivityviewcontroller *activitycontroller = [[uiactivityviewcontroller alloc] initwithactivityitems:activityitems applicationactivities:nil]; activitycontroller.excludedactivitytypes = [nsarray arraywithobjects:uiactivitytypeprint, uiactivitytypecopytopasteboard, uiactivitytypeassigntocontact, uiactivitytypesavetocameraroll, nil]; [self presentviewcontroller:activitycontroller animated:yes completion:nil]; this works fine. when open twitter or e-mail uiactivityviewcontroller , shows text want share , fine. but ,now want perform action in db when post successful or e-mail sent successfully. how can that? [activitycontroller setcompletionhandler:^(nsstring *act, bool done) { nslog(@"act type %@",act); nsstri...