Text field in webView- keyboard won't pop up

Discussion in 'iOS Programming' started by I'm a Mac, Feb 13, 2009.

  1. I'm a Mac macrumors 6502

    Joined:
    Nov 5, 2007
    #1
    My app is a tab bar app so on top of the tab bar it loads a webView (successfuly) however, for some reason, the keyboard won't pop up when there is a text field. I tried making the same app without the tab bar and the keyboard did pop up, however.

    Code:
    
    @implementation FirstViewController
    
    
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    	if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
    	
    	}
    	return self;
    }
    
    - (void)viewDidLoad {
    	webView.userInteractionEnabled = true;
    	[webView loadRequest:[[NSURLRequest alloc] initWithURL:[[NSURL alloc] initWithString:@"http://www.mywebsite.com"]]];
    }
    
    
    -(BOOL)shouldAutorotateToInterfaceOrientation: 
    (UIInterfaceOrientation)interfaceOrientation 
    { 
    	return YES; 
    } 
    
    
    
    - (void)didReceiveMemoryWarning {
    	[super didReceiveMemoryWarning]; 
    }
    
    
    - (void)dealloc {
    	[super dealloc];
    }
    
    
     
  2. mcnuggets macrumors newbie

    Joined:
    Jan 2, 2009
    #2
    I ran to the same problem... and I still don't have an answer to it yet.

    :(
     

Share This Page