Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

iPhone SDK. Tutorial 7. Picker. (Español Latino)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,238
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 7, 2011

Tutorial 7 iPhone SDK. Y el codigo prometido;

#pragma mark -
#pragma mark Picker Data Source Methods
- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView
{
return 1;
}
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
{
return [self.data count];
}
#pragma mark Picker Delegate Methods
- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
{
return [self.data objectAtIndex:row];
}

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (LKronecker)

  • Exelentes tutoriales amigo,

    me han servido de mucho

    muchas gracias

    

  • @metalicboy2 Que bien! Este fin de semana subire varios de iPhone. Recomiendalos con mas gente. Suerte!! 

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • Excelente tutorial como todos los que has hecho soy un gran seguidor tuyo, pero en este tengo un problema me sale un error en el main theard 1: program received signa: "SIGABRT", y no se que podra ser, Si me pudieras ayudar por favor.

  • Excelente tutoríales amigo, me gustan... Gracias por tu tiempo :-)

  • oye amigo donde aprendistes a programar ?? es que también kiero aprender a programar .ayuda

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more