尝试用swift中字典中的键的字符串填充数组。varcomponentArray:[String]letdict=NSDictionary(contentsOfFile:NSBundle.mainBundle().pathForResource("Components",ofType:"plist")!)componentArray=dict.allKeys这会返回一个错误:'AnyObject'notidenticaltostring也试过componentArray=dict.allKeysasString但是得到:'String'不能转换为[String]