开发者

UITextView content not appearing in UIAlerView

开发者 https://www.devze.com 2022-12-22 20:23 出处:网络
The content is about 230 lines.It does not appear in UITextView except when you click on it AND try to scroll down.Otherwise, it is a white blank view.

The content is about 230 lines. It does not appear in UITextView except when you click on it AND try to scroll down. Otherwise, it is a white blank view.

Any ideas why?

    UITextView *termsOfServic开发者_Python百科e = [[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];


Probably because UIAlertView isn't intended to have subviews added to it. Just because you can, doesn't mean you should.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号