Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一种方法来识别以编程方式生成的文本视图。问题是我正在创建一个文本视图列表,我想用代码控制它们。我怎样才能设置和ID或什么来知道哪个是哪个?
利用tag
tag
let textview = UITextView() textview.tag = your value in int