I'm getting data from a website in the form of NSString. The data may be just integers, sometimes integers with additional "a"/"b" representing additional information, or "#" meaning no data available. I've got the data into an array:
var labelMin = "-"
var labelMax = "-"
var arr = ["55a", "95a", "66", "25", "88b", "#"]
My question is:
How do I get the minimum & maximum value considering all objects in this array (e.g. also considering "95"in "95a", but no need to consider "#"), and print out subsequently on labelMin.text & labelMax.text?
[EDIT: The actual code will have 24 objects in the array, corresponding to data for every hour, which is continuously changing]