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

  • HTC Tutorials

    HTC Tutorial

    21 EYLÜL 2010
  • Snazzy Labs

    Snazzy Labs

    9 Aralık 2008
  • The Weavers of Eternity Paracord Tutorials

    The Weavers

    1 Ocak 2014