जब मैं UITableView में एक पंक्ति का चयन करता हूं, तो मैं पंक्ति के फ्रेम के जीसीआरईटी पर scrollRectToVisible:animated
पर कॉल कर रहा हूं, और तुरंत बाद में कुछ अन्य एनिमेशन कर रहा हूं। मेरी समस्या यह है कि मुझे नहीं पता कि scrollRectToVisible:animated
से एनीमेशन कब पूरा हो गया है।एक UITableView में, मुझे कैसे पता चलेगा जब scrollRectToVisible एक पंक्ति के लिए पूर्ण हो गया है?
मेरे कोड:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView cellForRwoAtIndexPath:indexPath];
[self.tableView scrollRectToVisible:cell.frame animated:YES];
//more animations here, which I'd like to start only after the previous line is finished!
}
+1 अच्छा सवाल है, लेकिन मुझे डर है कि जवाब है: आपको नहीं पता कि 'scrollRectToVisible: एनिमेटेड:' समाप्त होता है। – Sam
निम्न प्रश्न का उत्तर यहां भी मदद कर सकता है: http://stackoverflow.com/questions/7198633/how-can-i-tell-when-a-uitableview-animation-has-finished – fishinear