My app has a method that creates a label
-(void)addLabel:(float)x:(float)y:(float)w:(float)h:(NSString *)text {
CGRect label1Frame = CGRectMake( x, y, w, h );
UILabel *label1 = [[UILabel alloc] initWithFrame: label1Frame];
label1.text = text;
[self.view addSubview:label1];}
Then I call this method from other methods.
How can I access one of these labels to remove it from the superview, as I don’t have an var name for it.
Then pass in an appropriate
tagvalue (an integer) which is unique. Then use:to access it.