2010-04-29 6 views

Répondre

1

Je ne suis pas tout à fait sûr de ce que vous entendez par présélection d'un en-tête de section. Si vous cherchez à faire en sorte que la section qui vous intéresse est visible lorsque votre application démarre, vous pouvez utiliser cette méthode sur UITableView:

 
- (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath 
       atScrollPosition:(UITableViewScrollPosition)scrollPosition 
         animated:(BOOL)animated 

Si vous souhaitez sélectionner une ligne dans une section particulière, vous pouvez utiliser méthode (qui défilera également jusqu'à la ligne sélectionnée):

 
- (void)selectRowAtIndexPath:(NSIndexPath *)indexPath 
        animated:(BOOL)animated 
       scrollPosition:(UITableViewScrollPosition)scrollPosition 
Questions connexes