I\'m a noob in Objective-C and I have one question.
I have one UILabel object that I adding to one UIView with this code:
UILabel
UILabel *label = [
You can get your subviews with for loop iteration
for (UIView *i in self.view.subviews){ if([i isKindOfClass:[UILabel class]]){ UILabel *newLbl = (UILabel *)i; if(newLbl.tag == 1){ /// Write your code } } }
Swift
let label:UILabel = self.view.viewWithTag(1) as! UILabel