objective-c 中问号是什么意思?

学习 时间:2026-05-29 22:44:20 阅读:4791
objective-c 中问号是什么意思?- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return _dataSource?1:0;}- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ return _dataSource?_dataSource.count:0;}

最佳回答

懵懂的跳跳糖

坦率的蓝天

2026-05-29 22:44:20

条件?答案1:答案2。这个是正则表达式,当条件成立的话,返回答案1,条件为NO的话返回答案2。

最新回答共有2条回答

  • 醉熏的金针菇
    回复
    2026-05-29 22:44:20

    条件?答案1:答案2。这个是正则表达式,当条件成立的话,返回答案1,条件为NO的话返回答案2。

上一篇 以家庭的暴风雨为话题 咋写啊

下一篇 根据提示,写出关于"手"的成语