1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

UIViewController don't work

Discussion in 'iPhone/iPad Programming' started by ITCreative, Aug 8, 2011.

  1. ITCreative, Aug 8, 2011
    Last edited: Aug 8, 2011

    macrumors member

    #1
    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;
    	}
    	
    
    }
    
    
     
  2. macrumors 65816

    jnoxx

    #2
    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.
     
  3. macrumors member

    #3
    [COLOR=#000000 !important]

    Thanks a lot I change my code then the run correct




    [/COLOR]
     

Share This Page