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 Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-11-2010, 09:27 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 89
jkhamler is on a distinguished road
Default Touch Screen Target

Hi people,

I am designing an app for recreational shooters (clay pigeon/target etc.) to enable them to compete remotely.

I have a database on a remote server and I am using PHP to make SQL queries and JSON to ferry the data to and fro the handset (hopefully!!)

This is my first iPhone app and I need to implement a touch sensitive target with different areas corresponding to different scores. This is the target I have designed:

http://jonhamler.co.uk/gc99/target.png

Can anybody give me any pointers on how to approach making this? Should I overlay individual concentric circles of different sizes and apply actions to them separately? Or can I write a method that is able to record different scores on the one target image depending on where it is tapped?

Any comments, suggestions or ideas would be greatly appreciated!

Many thanks, Jon
jkhamler is offline   Reply With Quote
Old 07-11-2010, 10:58 AM   #2 (permalink)
Registered Member
 
finefin's Avatar
 
Join Date: Jun 2009
Posts: 259
finefin is on a distinguished road
Default

you could check the distance between the touch and the center of your target.
how about that? its just a little bit of math - ever heard of Pythagoras?
http://www.purplemath.com/modules/distform.htm
__________________

I help you, you buy my app - you help me, I buy your app

PARALLAX, The Book Of Sayings - chopped up edition! (HD),omicron,
Canupa Band deluxe (universal), Canupa Band FREE!, Your Face --- follow me on twitter

Last edited by finefin; 07-11-2010 at 11:05 AM.
finefin is offline   Reply With Quote
Old 07-11-2010, 03:35 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 89
jkhamler is on a distinguished road
Default

Quote:
Originally Posted by finefin View Post
you could check the distance between the touch and the center of your target.
how about that? its just a little bit of math - ever heard of Pythagoras?
The Distance Formula

Ah, good idea! Yes, I have heard of Pythagorus.
jkhamler 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: 326
16 members and 310 guests
akphyo, alexP, appservice, cgokey, EXOPTENDAELAX, flamingliquid, guusleijsten, mariano_donati, ohmniac, Paul Slocum, PavelSea, SLIC, Sloshmonster, Sonuye857, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,653
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, ohmniac
Powered by vBadvanced CMPS v3.1.0

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