I crate project view_based app and
my code is build succeeded , but when run it doesn't any response
my code is build succeeded , but when run it doesn't any response
Code:
- (void)pickerView:(UIPickerView *)pickerView
didSelectRow:(NSInteger)row
inComponent:(NSInteger)component
{
SecondViewController *anotherViewController;
switch (row){
case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 11: case 12: case 13:
anotherViewController = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
[self.navigationController pushViewController:anotherViewController animated:YES];
[anotherViewController release];
break;
}
}
Last edited: