UIView viewWithTag 0 problem
Posted
by
leon
on Stack Overflow
See other posts from Stack Overflow
or by leon
Published on 2009-10-08T19:46:20Z
Indexed on
2010/12/30
18:54 UTC
Read the original article
Hit count: 154
Hi, 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 only ONE UITextBox has tag 0, why:
(UITextField *) [self.view viewWithTag:0]).text = @"foo";
Interesting that when triggered event received for the element with tag 0, I can get value of Tag 0 with no problem.
Is there a limitation to look for tag 0 elements?
© Stack Overflow or respective owner