【发布时间】:2025-12-16 12:30:01
【问题描述】:
我在网上阅读了很多文章和书籍(Apple),但我无法找出两者之间的区别?和 ! Swift 语言中的运算符。
override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell!
{
}
override func numberOfSectionsInTableView(tableView: UITableView?) -> Int {
return 1;
}
在上面的代码中,第一个 func 将 tableView 声明为 !并在第二个函数中 tableView 被声明为?。
【问题讨论】:
-
Apple 的免费 swift 书籍中解释了这些符号。
标签: swift