And check, if showData is declared as a NSArray or NSMutableArray.
Regarding the error message, it is declared as NSString, which is wrong.
Furthermore check, if changeProductText is called before viewDidLoad. Otherwise you will also get an error, if the array is undeclared.
|