问题描述:
objective-c 中问号是什么意思?
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return _dataSource?1:0;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return _dataSource?_dataSource.count:0;
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return _dataSource?1:0;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return _dataSource?_dataSource.count:0;
}
问题解答:
我来补答展开全文阅读