2010-07-27 26 views

Répondre

0

vous devez rouler un de vos propres. Ce que j'ai fait dans ce cas est déplacé une vue sélecteur de l'écran et puis quand ils frappent le bouton, il anime le mouvement de la vue du sélecteur sur l'écran. Il s'éteint quand ils choisissent.

3

Vous pouvez essayer d'utiliser un UIActionSheet comme celui-ci:

UIActionSheet *action = [[UIActionSheet alloc] initWithTitle:@"A title here"              delegate:self 
cancelButtonTitle:@"Cancel"            destructiveButtonTitle:@"Dismiss" 
otherButtonTitles:@"One option", @"Another option", nil]; 

[action showInView:self.view]; 

mettent alors en œuvre les méthodes de délégués comme celui-ci:

// Called when a button is clicked. The view will be automatically dismissed after this call returns 
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { 
    switch (buttonIndex) { 
     case x: 
      //Chose option x 
      break; 
        ... 
     default: 
      //Default action 
      break; 
    } 
}