UIView viewWithTag 0 problem

前端 未结 4 1399
不思量自难忘°
不思量自难忘° 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:17

    que is right. I just got bit by this.

    From the docs:

    Discussion This method searches the current view and all of its subviews for the specified view.

    At least it's documented correctly. I guess we need a method called "subviewWithTag:"

提交回复
热议问题