UIView viewWithTag 0 problem

前端 未结 4 1391
不思量自难忘°
不思量自难忘° 2020-12-06 19:39

On view in IB I have numerous items (including view itself). ONLY one item has tag 0, yet following line works for ANY UITextBox other then the one with tag 0. Note that onl

4条回答
  •  自闭症患者
    2020-12-06 20:12

    All views have a 0 tag as a default so if you get a 0 view it could be any view. For it to work you need to use non-zero values that you set in your program or within Interface builder.

提交回复
热议问题