Currently, testArray is an AnyObject. I'm trying to convert testArray[0][0]
, which is represented by testScoreOne
to a string, rather than an anyObject
. I don't have any anyObject
declarations in my code, so I'm not sure where Xcode is getting this declaration from.
@IBAction func loadData(sender: NSArray) {
if let testCompositeArray:NSArray = defaults.objectForKey("testScoreSATArray") as? NSArray {
//self.showDataLabel.text = defaults.objectForKey("testScoreSATArray") as NSArray
let testArray = defaults.objectForKey("testScoreSATArray") as NSArray
let testScoreOne = testArray[0][0]