Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ITCreative

macrumors member
Original poster
Aug 4, 2011
46
0
I crate project view_based app and

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


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:

jnoxx

macrumors 65816
Dec 29, 2010
1,343
0
Aartselaar // Antwerp // Belgium
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

macrumors member
Original poster
Aug 4, 2011
46
0
[COLOR=#000000 !important]

Thanks a lot I change my code then the run correct




[/COLOR]
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.