ios - Unable to set initialtext in ios9 in native facebook share dialog -


i trying set initial text slcomposeviewcontroller in ios 9 , displaying blank in dialog.

here code.

 slcomposeviewcontroller *composecontroller = [slcomposeviewcontroller composeviewcontrollerforservicetype:slservicetypetwitter];                   nsstring *initialtext = @"tesing text issue.";                   if (initialtext != nil)                  {                      [composecontroller setinitialtext:initialtext];                  }  dispatch_async(dispatch_get_main_queue(), ^                                 {                                     //show progress hud here                                     [self presentviewcontroller:composecontroller animated:yes completion:nil];                             }); 

i have aslo check in sharing app, have same issue. can have workaround here?

facebook has deprecated api set initial text programmatically while sharing. below references:

hope helps.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -