Editing A Label By Tag iOS
cocoa-touch, ios, iphone, label, objective-c
Solution
Change your code to
|
v
UILabel *label = (UILabel *)[self.view viewWithTag:71];
`UIViewController` does not have `viewWithTag:`, `UIView` does
Problem
I've looked for this everywhere and I can't find a solution... My Goal: I'm trying to edit a label in my storyboard without creating an outlet specifically for that label (I have 36 labels). Problem: I tried this basic line of code that I found on another Stack Overflow question, but it didn't succeed and I got an error... ``` UILabel *label = (UILabel *)[self viewWithTag:71]; ``` Error: `No visible @interface for 'ViewControllerTwo' declares the selector 'viewWithTag:'` Any help will be appreciated...