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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 12-10-2009, 05:10 AM   #1 (permalink)
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Default Trouble with UITextField (noob question)

Hi there!

I'm really new with iPhone development and I'm developing an OpenGL based game since two months. Everything works fine cause I'm working with plain code (what I'm used to) but now I have to interact with Interface Builder, and I don't know how it exactly works.

I've created a UITextField which shows just at the beginning of my app (it shouldn't show here, but I'll take care of that later) and I want players to put there it's name. When the UITextField is clicked the keyboard opens as I expected and you can write on it, but seems that the "return" button doesn't do anything (so the keyboard doesn't hides once it's opened). How can I solve this?

And, for giving me an initial point to start working with it, what I have to do with elements created with the Interface Builder? Where are they stored? May I declare it somewhere? Can I refer it in code (for example in the "EAGLView.m" class?) I've searched over the net but I've found only tutorials that tells how to create some elements with a plain project, and doesn't explain much things...

Thanks in advance!
Johanovski is offline   Reply With Quote
Old 12-10-2009, 05:28 AM   #2 (permalink)
Daddy Cool
 
MarkC's Avatar
 
Join Date: Mar 2009
Location: Yorkshire, England
Age: 100
Posts: 1,472
Default

For the hiding of the keyboard, search for forums here for 'resignfirstResponder'

MarkC is online now   Reply With Quote
Old 12-10-2009, 06:26 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Pensacola, FL
Posts: 37
Default

Hi,
it's explained in the "Your iPhone first application"

iPhone Dev Center: Your First iPhone Application: Configuring the View
Janek

Quote:
Originally Posted by Johanovski View Post
Hi there!

I'm really new with iPhone development and I'm developing an OpenGL based game since two months. Everything works fine cause I'm working with plain code (what I'm used to) but now I have to interact with Interface Builder, and I don't know how it exactly works.

I've created a UITextField which shows just at the beginning of my app (it shouldn't show here, but I'll take care of that later) and I want players to put there it's name. When the UITextField is clicked the keyboard opens as I expected and you can write on it, but seems that the "return" button doesn't do anything (so the keyboard doesn't hides once it's opened). How can I solve this?

And, for giving me an initial point to start working with it, what I have to do with elements created with the Interface Builder? Where are they stored? May I declare it somewhere? Can I refer it in code (for example in the "EAGLView.m" class?) I've searched over the net but I've found only tutorials that tells how to create some elements with a plain project, and doesn't explain much things...

Thanks in advance!
Janek2004 is offline   Reply With Quote
Reply

Bookmarks

Tags
interface builder, keyboard, opengl, uitextfield

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 234
16 members and 218 guests
ADY, Alsahir, cacao, dacapo, Dani77, Desert Diva, djohnson, F_Bryant, HemiMG, jansan, M@realobjects, MarkC, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,762
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:54 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0