I keep getting an error of \"ambiguous use of subscript,\" in my Swift code. I don\'t know what\'s causing this error. It just randomly popped up. Here\'s my code:
["Key"] has causing this error. New Swift update, you should use objectForKey to get your value. In you case just change the your code to ;
objectForKey
if let button1Title = currentQuestionDict.objectForKey("choice1") as? String { button1.setTitle("\(button1Title)", forState: UIControlState.Normal) }