0

内容约230行。它不会出现在 UITextView 中,除非您单击它并尝试向下滚动。否则,它是一个白色的空白视图。

任何想法为什么?

    UITextView *termsOfService = [[UITextView alloc] initWithFrame:CGRectMake(20.0, 100.0, 245.0, 170.0)];
    termsOfService.text = responseString;
    termsOfService.font = [UIFont systemFontOfSize:13];
    termsOfService.editable = NO;
    termsOfService.delegate = self;
    [alert addSubview:termsOfService];
4

1 回答 1

1

可能是因为 UIAlertView 不打算添加子视图。仅仅因为你可以,并不意味着你应该。

于 2010-03-15T22:32:02.070 回答