UitextView长文本不可见

时间:2016-10-03 08:45:22

标签: ios xamarin.ios uitextview

在UITableViewCell中为UITextView添加了一个长文本,文本不可见。

textView= new UITextView()
            {
                TranslatesAutoresizingMaskIntoConstraints = false,
                Font = UIFont.SystemFontOfSize(17f),
                UserInteractionEnabled = true,
                Editable = false,
                ScrollEnabled = false,
                DataDetectorTypes = UIDataDetectorType.Link,
                TextContainerInset = UIEdgeInsets.Zero,
                TextContainer = { LineFragmentPadding = 0 },
            };


textView.Text = text;//Very very long text

0 个答案:

没有答案
相关问题