为什么 UITextView 默认将 clipsToBounds 设置为 true?
Why does UITextView set clipsToBounds to true by default?
对于UITextView
,为什么clipsToBounds
默认设置为true
?
如果我想向 UITextView
添加一个框架超出 UITextView
可见范围的子视图,是否可以将其设置为 false
?我已将 isScrollEnabled
设置为 false
。
对于 UIScrollView
,clipsToBounds
默认设置为 true
。我认为这样它的子视图就会在滚动超出其范围时消失。我想 UITextView
只是继承了这个设置。
我认为没关系,但我建议改为将子视图添加到 UITextView
的父视图中。
对于UITextView
,为什么clipsToBounds
默认设置为true
?
如果我想向 UITextView
添加一个框架超出 UITextView
可见范围的子视图,是否可以将其设置为 false
?我已将 isScrollEnabled
设置为 false
。
对于 UIScrollView
,clipsToBounds
默认设置为 true
。我认为这样它的子视图就会在滚动超出其范围时消失。我想 UITextView
只是继承了这个设置。
我认为没关系,但我建议改为将子视图添加到 UITextView
的父视图中。