IOS - only the first line of text is available

In two places in our application, the text that the user enters shows only the first line of text. Both events are located in external environments, first in UIActivityView, and in Freshdesk MobiHelp.

First, using the UIActivityView when using Twitter:

The problem is that if the text goes beyond one line in the modal, the text becomes transparent:

screenshot

NSString *textToShare = [NSString stringWithFormat:NSLocalizedString(@"CHALLENGE-TWITTER- DEFAULT-TEXT", nil), [UserManager currentUser].displayName]; NSString *urlToShare = [NSURL URLWithString:@"http://example.com"]; NSArray *activityItems = @[textToShare, urlToShare]; UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil]; [self presentViewController:activityVC animated:YES completion:nil]; 

Secondly, send a request to Freshdesk: screenshot

I should also add that the Facebook mod from UIActivityView works just fine: screenshot

I would really appreciate any advice here as I got lost.

+7
source share
1 answer

I think in the second screenshot that you attached here, there is a white screen on the red area, which could probably be your shortcut or text area, and I assume that it locks your text area. If the view was added by you, you can get a specific area of ​​text on the front panel so that it is not blocked, and you can see the text. Hope this helps

enter image description here Do you see a white box inside the one I selected? There is some idea about your text box. How do you add your text area? How subview ?? Can you just get a log of the main views of subviews ?? how

 NSLog (@"%@",[self.view subviews]); 

And now check the view hierarchy.

+1
source

All Articles