objective-c 中问号是什么意思?- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return _dataSource?1:0;}- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ return _dataSource?_dataS

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/10 13:32:17
objective-c 中问号是什么意思?- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {    return _dataSource?1:0;}- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{    return _dataSource?_dataS

objective-c 中问号是什么意思?- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return _dataSource?1:0;}- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ return _dataSource?_dataS
objective-c 中问号是什么意思?
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return _dataSource?1:0;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return _dataSource?_dataSource.count:0;
}

objective-c 中问号是什么意思?- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return _dataSource?1:0;}- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ return _dataSource?_dataS
条件?答案1:答案2.这个是正则表达式,当条件成立的话,返回答案1,条件为NO的话返回答案2.