TEXTFIELD: how to use keyborad and objective c textfield
2 posters
TEXTFIELD: how to use keyborad and objective c textfield
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!
daniele
- 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!
daniele
skeggialungo- Posts : 9
Join date : 2009-03-13
Re: TEXTFIELD: how to use keyborad and objective c textfield
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...
Similar topics
» C++ or Objective C
» Question Regarding Scripting in SIO2: LUA, C, C++, Objective-C
» invoking objective-c messages and invoking SiO2 API calls from obj-c
» Question Regarding Scripting in SIO2: LUA, C, C++, Objective-C
» invoking objective-c messages and invoking SiO2 API calls from obj-c
Permissions in this forum:
You cannot reply to topics in this forum