hope you're having a good day,
What's the best way to set each button in a tableview cell to a different value based on a NSMutableArray value?
I can get the values into the array and NSlog and it displays all of the Urls fine in the xcode console. When I click on the button in my app it is only loading the last result a string was set to from the array for all of the buttons in the tableview.
For example when I tap the button code below it will only load the last string value (I want to change this to each value from an array of results), I understand this is how strings should work since as it iterates over the results it will change the string but how do I set the button code below to load each different URL in the Array rather than the string value?
Button code is:
NSLog(@"detailsB %@", self.detailsB); //detailsB is a string value and on NSlog it will only show the last Url from the results
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:self.detailsB]]; //sets all buttons as the last string value and it opens Safari fine with that one url
Thanks all, any help is very much appreciated,
Gerard