PDA

View Full Version : UIViewController don't work




ITCreative
Aug 8, 2011, 03:14 PM
I crate project view_based app and

my code is build succeeded , but when run it doesn't any response :confused:




- (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;
}


}



jnoxx
Aug 9, 2011, 01:49 AM
This is quite a bad explenation >.>
But from first hand I think it's because your picker doesn't implements the Delegate method, have you bothered putting a breakpoint in there or something?
How can we know what you have tried, or what goes wrong.

ITCreative
Aug 9, 2011, 07:29 PM
Thanks a lot I change my code then the run correct