开发者

How can i add view to a UITextView Object

开发者 https://www.devze.com 2023-01-03 16:06 出处:网络
i have a UITextView object and i want to load a label object or a set of label object over it but i dont have a view property for UITextView.The only thing i have is subViews property in UIView class

i have a UITextView object and i want to load a label object or a set of label object over it but i dont have a view property for UITextView.The only thing i have is subViews property in UIView class which is parent class of开发者_运维问答 UITextView.How should i really go about it...


There is a method on UIView called addSubview, which takes a UIView object as a parameter.

UITextView inherits from UIView, so you can call [textView addSubview:someView];.

0

精彩评论

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