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 Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-30-2008, 01:05 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Ireland
Age: 21
Posts: 472
Post draw line between UIImageViews

Hey everyone, I've been trying to figure this out for a while now but haven't got anywhere.

When a user touches a uiimageview and drags to another UIImageview I want a line to be drawn connecting the two uiimageviews. I cant figure out how to do it.

Can anyone help me please?

Thanks in advance

Kieran
__________________
On the iOS App Store
kieran12 is offline   Reply With Quote
Old 10-30-2008, 01:14 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 802
Default

You could consider a transparent view that covers them so you could draw over the top but you'd want to forward touches to the other views.
scottiphone is offline   Reply With Quote
Old 10-30-2008, 01:22 PM   #3 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Ireland
Age: 21
Posts: 472
Default

I think I saw that in one of the tutorial vids. So I would have one view that is drawn on and when the touches end the line is transferred to the view holding the uiimageviews and the transparent top view is cleared?
__________________
On the iOS App Store
kieran12 is offline   Reply With Quote
Old 11-02-2008, 10:35 AM   #4 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 802
Default

All depends on your app and what you need to do. Do you need the line to stay on top at all times? Can you calculate where the line should be in subviews, etc.
scottiphone is offline   Reply With Quote
Old 11-02-2008, 10:40 AM   #5 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Ireland
Age: 21
Posts: 472
Default

The line will be visible at all times but once it is drawn it will not be modified. The lines drawn between two images will be straight. Each users line will be drawn in their color and once a user draws a line between two images no other line can be drawn over theirs.

Thanks for your help scott
__________________
On the iOS App Store
kieran12 is offline   Reply With Quote
Reply

Bookmarks

Tags
image, line, quartz, touch

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: 331
22 members and 309 guests
@sandris, ADY, BrianSlick, dacapo, Dani77, Dattee, dre, HDshot, HemiMG, JasonR, MarkC, mer10, nibeck, prchn4christ, ryandb2, spiderguy84, themathminister, timle8n1, tomtom100, viniciusdamone, vogueestylee, vvenkatachallam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,883
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, vvenkatachallam
Powered by vBadvanced CMPS v3.1.0

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