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 10-23-2010, 09:40 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 8
Chibisnow is on a distinguished road
Arrow Static image inside zoomed scrollview

Hi guys, I have an uiimageviews that are able to be dragged inside a uiscrollview. I want to be able to drag an image to a certain area(bottom right side of screen) such as a trashcan. This works for a normal view, but I also want it to work when the uiscrollview is zoomed in at any level. I know there's a method in view that is ConvertRect and also ConvertPoint, which changes the coordinate system from one view to another for the rectangle, but it's not working the way I implemented it. Here's the code I have so far:
[mycontroller.view convertRect:mycontroller.trashcan.bounds toView:mycontroller.mapcontainer];
[mycontroller.view convertRect:self.frame toView:mycontroller.mapcontainer];
if(CGRectIntersectsRect(self.frame, mycontroller.trashcan.bounds))

I convert the rect of trashcan to the mapview(scrollview). And then I check if the image intersects the trashcan.

That's basically my issue, I've been trying to find this issue somewhere but it's pretty unique. Thanks to anyone who has any insight!
Chibisnow is offline   Reply With Quote
Old 10-23-2010, 09:50 PM   #2 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 8
Chibisnow is on a distinguished road
Default

I also must mention, I've made the trashcan added to the view on the viewcontroller itself. So, it's basically a level or two above the uiimageviews that are being dragged. This is so the trashcan won't zoom with the other uiimageviews.
Chibisnow is offline   Reply With Quote
Old 10-25-2010, 10:35 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 8
Chibisnow is on a distinguished road
Unhappy

Sorry for another reply, but does anyone have any ideas on this issue? It's pretty unique and I've been searching the web with no luck for days.
Chibisnow is offline   Reply With Quote
Reply

Bookmarks

Tags
dragged uimageview, uiimageview, uiscrollview, zooming

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: 322
12 members and 310 guests
chiataytuday, condor304, Desert Diva, Domele, dre, dreamdash3, mottdog, oceanlablight, palme2elie, Paul Slocum, schmallegory
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,659
Threads: 94,118
Posts: 402,895
Top Poster: BrianSlick (7,990)
Welcome to our newest member, dreamdash3
Powered by vBadvanced CMPS v3.1.0

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