从Swift 1.2迁移到Swift 2后模糊地使用下标

时间:2016-01-06 11:43:33

标签: swift

从swift 1.2迁移到swift 2时,我有一个错误:

  

模糊地使用下标

编译我的代码时,在tutu.setTemplate(...开头的行上的

。似乎是出现此错误的感叹号:

func tapHandlerTemplatesControllerCell(recognizer:UITapGestureRecognizer)
    {
        self.templatesControllerCell.activate()
        if let key1=toto as? NSString
        {
            if let key2=tata
            {
    tutu.setTemplate(tete.templates[String(key1)]![String(key2)] as! NSDictionary)
            }
        }
    }

0 个答案:

没有答案
相关问题