Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-13-2008, 09:54 AM   #5 (permalink)
cmezak
Registered Member
 
cmezak's Avatar
 
Join Date: Jul 2008
Posts: 207
cmezak is on a distinguished road
Default

I'm having this problem, too. when I add a becomeFirstResponder message before I add the textView to the viewController's view, the view loads with a cursor in the textView, but with no keyboard. No tapping will bring the keyboard up, either. Here's my code:

Code:
notesTextView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 320, 400)];
notesTextView.text = [sighting notes];
notesTextView.font = [UIFont systemFontOfSize:20];
notesTextView.delegate = self;
notesTextView.backgroundColor = [UIColor lightGrayColor];
self.view.backgroundColor = [UIColor lightGrayColor];
[notesTextView setReturnKeyType:UIReturnKeyDone];
[notesTextView becomeFirstResponder];
[self.view addSubview:notesTextView];
Also, I've set the keyboard's return key type to Done, but the key still adds a newline rather than telling the textView to resign first responder. If I am supposed to handle this manually, how so?

Thanks
Charlie

Last edited by cmezak; 08-13-2008 at 09:58 AM.
cmezak is offline   Reply With Quote
 

» Advertisements
» Online Users: 540
18 members and 522 guests
Apptronics RBC, Bryan1, chiataytuday, DaveDee, ilmman, jmorregoc, mariano_donati, mediaspree, mox, mpsventas, Newbie123, newprogrammer, oceanlablight, Simba, skrew88, Speed, zin
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,316
Threads: 93,990
Posts: 402,428
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Simba
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:08 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.