objective c - Using an NSString as a Name of a Label For Loops -


I have a lot of labels and it would be easy if I could use a string instead of the name of the label. Property (e.g. center). This will reduce the number of lines typed. I have to change the same property of all the labels several times. If I have a loop similar to what is said something like this:

  NSString * For TheLabelName = @ "MyLabel #" (Int Thanembar = 1; The number & lt; some; The number ++) {TheNumberString = [NSString StringWithFormat: @ "% i", the number]; TheLabelName = [TheLabelName StringBeerPlalings OccurrenceOffString: @ "" with String: The Number String]; TheLabelName.center = CGPointMake ...}  

I did not find anything like this on Google or Stack Is there any possible way to use the string instead of the label name?


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -