gpt4 book ai didi

objective-c - 如何将此点表示法转换为嵌套的Objective-C中括号?

转载 作者:行者123 更新时间:2023-12-01 17:27:21 24 4
gpt4 key购买 nike

我试图不惜一切代价避免点符号,但是我正在从一本几乎明确使用它的书中学习,所以当我在文本中看到它时,我一直在将其转换出来。但是,将多个点连接在一起的符号仍然使我感到困惑。

有人可以将这两种方法分解为常规的括弧方法并解释其工作原理,以便将来我可以自己将其转换出来吗?

self.tableView.tableHeaderView = searchBar;


self.searchBar.autocorrectionType = UITextAutocorrectionTypeYes;

最佳答案

第一个是:

[[self tableView] setTableHeaderView: searchBar];

使用也没有错:
[self.tableView setTableHeaderView: searchBar];

第二个:
[[self searchBar] setAutoCorrectionType: UITextAutocorrectionTypeYes];

在这里您还可以使用:
[self.searchBar setAutoCorrectionType: UITextAutocorrectionTypeYes];

关于objective-c - 如何将此点表示法转换为嵌套的Objective-C中括号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9330554/

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