微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

swift编译器迁移到swift 3后出错

如何解决swift编译器迁移到swift 3后出错

迁移到Swift 3之后,我遇到了这些错误

self.final_fb_fName_str = result.value(forKey: "first_name") as? String
    ERROR //value of type 'Any?' has no member 'value'


@available(*,deprecated,message: "Use init(navigationController:title:items:) instead",renamed: "BTNavigationDropdownMenu(navigationController: UINavigationController?,title: String,items: [AnyObject])")
    public convenience init(title: String,items: [AnyObject]) {
        self.init(navigationController: nil,title: title,items: items)
    }
ERROR // 'renamed' argument of 'available' attribute must be an operator,identifier,or full function name,optionally prefixed by a type name

我无法纠正它们;谢谢

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。