I am trying to get the UITextView of SLComposeViewController, how do I get it? I tried the following but it doesn't work:
[viewController presentViewController:facebookController
animated:YES
completion:^{
for (UIView *viewLayer1 in facebookController.view.subviews) {
for (UIView *viewLayer2 in viewLayer1.subviews) {
if ([viewLayer2 isKindOfClass:[UIView class]]) {
for (UIView *viewLayer3 in viewLayer2.subviews) {
if ([viewLayer3 isKindOfClass:[UITextView class]]) {
[(UITextView *)viewLayer3 setDelegate:self];
}
}
}
}
} }];
FYI the code above works fine if it's a SLServiceTypeTwitter
but it doesn't work if it's SLServiceTypeFacebook