TEXTFIELD: how to use keyborad and objective c textfield

Go down

TEXTFIELD: how to use keyborad and objective c textfield

Post  skeggialungo on Mon Jun 15, 2009 6:12 am

Hi, i am trying to develop a logic online game and i have great problem with textfield: i have read that if i want use iphone keyboard i must use UITextfield or uiTextview but i do not understand how to use it in the same sio2 project. i have a menu window and with my widget i go into the 1player game or 2 player game, simply using sio2widget:
- 1 player for the match with computer
- 2 players for a match with a friend
- credits
- network player for an online match
- continue that appear if a match is in pause

for changing "window" i change the widget. in network mode i must ask to player the login name and password in sio2 there are not a textfield component so i must use uitextfield but how can i use it in this case?
thanks for any help!


Posts : 9
Join date : 2009-03-13

View user profile

Back to top Go down

Re: TEXTFIELD: how to use keyborad and objective c textfield

Post  sio2interactive on Mon Jun 15, 2009 6:17 am

Just simply create your own textfield based on a combination of SIO2widget & SIO2font, simply get the focus of the widget, pop the keyboard and redirect the keyboard input to a string attached to your textfield struct...

SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch

Posts : 1526
Join date : 2008-08-26
Age : 39
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum