I have weird behavior with the viewWithTag function. My storyboard looks like this:
-viewController
--UIScrollView1 (should be a UIView but not changing yet)
--- Object with tag 1 to 11
--- Some other object with tag 0
--UIScrollView2 (should be a UIView but not changing yet)
--- Object with tag 1 to 11
--- Some other object with tag 0
I am my code, I do [UIScrollView1 wiewWithTag: (1 to 11)] (every time it throws like a good object and it works well. I do the same with UIScrollView2, but viewWithTag returns UIScrollView2 every time, so I never map any marked object.
For debugging purposes only, I do not update UIScrollView2 and try to update some other value of UIScrollView1, and it returns UIScrollView1 for only one object - UIImageView (single). But all UILabel work fine again.
Anyone have any tips to help me?
PS: Tag objects were checked as 10 times, and I use a function like: - (void) updateWithScroll: (UIScrollView *) myScroll so this is the same as 1 or 2: (
Thanks in advance,
Damien
source share