SORU
27 EKİM 2010, ÇARŞAMBA


UİTableView Seçilmiş endeks

UITableViewseçilen dizin istiyorum. Aşağıdaki kodu yazdım:

NSIndexPath *index = [NSIndexPath indexPathForRow:1 inSection:0];
[tableView scrollToRowAtIndexPath:index 
                 atScrollPosition:UITableViewScrollPositionTop 
                         animated:YES];

Bu her zaman 1. Madde için çalışır. indexPathForRow. seçilen dizin istiyorum

Yardım lütfen. Teşekkürler.

CEVAP
27 EKİM 2010, ÇARŞAMBA


NSIndexPath *selectedIndexPath = [tableView indexPathForSelectedRow];

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Dion Coulls

    Dion Coulls

    16 AĞUSTOS 2006
  • NextGenWindows

    NextGenWindo

    8 Kasım 2011
  • superemposed

    superemposed

    25 Aralık 2007