7

In two places in our app the text that the user types in only shows first line of text. Both occurances are in external frameworks, first in UIActivityView, the other in Freshdesk MobiHelp.

First, with UIActivityView, when using Twitter:

The problem is that if the text goes beyond one row in the modal, the text goes 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];

Second, in Freshdesk submit a ticket: screenshot

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

Would really appreciate any tips here, as I'm lost.

4

1 回答 1

1

我认为在您附在此处的第二个截图中,红色区域上方有一个白色屏幕,可能是您的标签或文本区域,我猜它挡住了您的文本区域。如果视图是您添加的,您可以将特定的文本区域放在前面,这样它就不会被阻塞,您可以看到您的文本。希望这可以帮助

在此处输入图像描述 你能看到我突出显示的那个里面有一个白框吗?您的文本区域有一些视图。你是如何添加你的文本区域的?作为子视图??你可以只记录主要视图子视图吗?喜欢

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

现在检查视图层次结构。

于 2013-02-20T15:04:35.440 回答