gpt4 book ai didi

objective-c - 为什么-[NSString stringWithFormat :] don't need a nil to indicate the end of arguments?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:55:02 24 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Why do parameter lists in certain cocoa methods end with a nil?

当我定义这样的方法时,我必须放置一个 nil/NULL/0 来指示这些变量参数的结尾,stringWithFormat: 是如何实现的,这样就不需要这样做了?

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