gpt4 book ai didi

ios - #selector(Aclass.method) 和#selector(self.method) 的区别

转载 作者:搜寻专家 更新时间:2023-10-31 08:32:22 25 4
gpt4 key购买 nike

<分区>

有什么区别:

#selector(Aclass.someMethod)#selector(self.someMethod)

someMethod 是一个实例函数,我在 AClass 内部调用是这样的:

NSNotificationCenter.defaultCenter().addObserver(self, 
selector: #selector(self.someMethod), // #selector(Aclass.method)
name: "REMoveOrderViewRefresh",
object: nil
)

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com