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 > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-28-2011, 10:32 AM   #1 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 28
jeroenkeij is on a distinguished road
Default place object on tap

hello,

i'm developing a game and I want to make a function where the user can tap anywhere on the screen and a button will be created where the user taps.
how can i do that easily?


jeroen
jeroenkeij is offline   Reply With Quote
Old 08-30-2011, 03:54 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

you are using some engine? or just UIKit?
__________________
dany_dev is offline   Reply With Quote
Old 08-31-2011, 09:35 PM   #3 (permalink)
Registered Member
 
TechnoEagle's Avatar
 
Join Date: Sep 2010
Posts: 69
TechnoEagle is on a distinguished road
Default

You can use the touchended: method. Basically it will get called every time the user picks their finger up off the screen, giving you info on where they touched and more. If you look it up in the documentation, there are some examples on how exactly to use it.
__________________


TechnoEagle is offline   Reply With Quote
Old 09-01-2011, 10:46 AM   #4 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 28
jeroenkeij is on a distinguished road
Default

Quote:
Originally Posted by TechnoEagle View Post
You can use the touchended: method. Basically it will get called every time the user picks their finger up off the screen, giving you info on where they touched and more. If you look it up in the documentation, there are some examples on how exactly to use it.
thanks!
jeroenkeij is offline   Reply With Quote
Reply

Bookmarks

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: 395
14 members and 381 guests
7twenty7, apatsufas, AppsBlogger, comicool, Creativ, Dalia, dansparrow, Duncan C, HemiMG, heshiming, LunarMoon, Murphy, pbart, Tomsky
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,915
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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