Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取对象类型参数说明有误 #79

Open
cajsaiko opened this issue Dec 22, 2017 · 0 comments
Open

获取对象类型参数说明有误 #79

cajsaiko opened this issue Dec 22, 2017 · 0 comments

Comments

@cajsaiko
Copy link

获取对象类型这一章里有说到“其中 object_getClass 是一个定义在 ObjectiveC 的 runtime 中的方法,它可以接受任意的 AnyObject! 并返回它的类型 AnyClass! (注意这里的叹号,它表明我们甚至可以输入 nil,并期待其返回一个 nil)”

这里查了下object_getClass方法说明,接受的应该是一个Optional类型才对,文中也提到可以接受nil,叹号应该改成问号吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant