0

I am trying to add "reply" functionality to a particular tweet via SLComposerViewController.

I need to loop through all the subviews and grab the send button as it shows here

SLComposeViewController* tweetViewController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];   
for (UIView * subview in tweetViewController.view.subviews){
///
}

but the subviews is empty. and I couldn't garb the send button. Any clue is much appreciated!

Any other suggestions to have reply functionality for iOS 8 other than using Social framework? I had DETweetComposeViewController before.

Community
  • 1
  • 1
ramo
  • 609
  • 2
  • 8
  • 14
  • What are you trying to do with the button exactly? subviews is likely empty because the view hasn't been loaded yet. – Patrick Goley May 08 '15 at 00:26
  • It's a really bad idea to dig around the private view structure of standard iOS view controllers/views. Such code is fragile and likely to break in future iOS updates. – rmaddy May 08 '15 at 01:09
  • So I need a way of replying to a particular tweet via SLComposerViewController and social framework. Is there any better way to implement the reply. – ramo May 08 '15 at 01:58

0 Answers0