Swift

Argument type 'Any' expected to be an instance of a class or class-constrained type

Any是任意类型,AnyObject必须是对象实例,如果是OC的id类型,那么对应的应该是Any

posted @ 2023-03-06 10:14  雨筱逸悠  阅读(19)  评论(0编辑  收藏  举报