Tôi cần chuyển đổi nsindexpath var thành NsInteger hoặc đơn giản là int. ví dụ:Làm thế nào để chuyển đổi NSIndexpath thành NSInteger hoặc đơn giản là int?
int rowIndex = [mGoogleBaseTable selectedRow];
//mGoogleBaseTable is a NSTable type in Macdevelopement..
& &
int rowIndex = [mGoogleBaseTable indexPathForSelectedRow];
//mGoogleBaseTable is a UITableView type in Iphone (iOS)Development.
selectedRow trả NSInteger đơn giản nhưng indexPathForSelectedRow trả về một NSIndexPath ..
Xin hãy giúp tôi làm thế nào tôi có thể đạt được điều này.
cảm ơn .. Tác phẩm của nó. – Tarun
cảm ơn bạn .. hoàn thành công việc là p.row nhưng tôi không hiểu p.section. – AnilPatel
@AnilMetatagg phần này chỉ phù hợp nếu bạn có nhiều phần. – mvds