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 03-29-2010, 09:17 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 1
battoukun is on a distinguished road
Default Draw with finger inside UIImageView

Hi, I'm having problems writing with my finger inside an UIImageView. I have a simple View based application and in my view I've added a UIImageView control which takes up the whole screen (iPhone screen) so I handled the touchesBegan, touchesMove and touchesEnded events in order to be able to draw a line where a user would swipe their fingers on the screen and this works correctly. The problem is if I resize the UIImageView control to any size less than the size of the screen then the drawing inside of it gets messed up, it tends to shrink to the left or to the bottom depending on how I modified the size of the UIImageView.

I'm attaching the sample application (it has only one view with the code mentioned above) in hope that someone could point me out in the right direction towards figuring out why is this happenning.

Thanks.
Attached Files
File Type: zip Write.zip (19.5 KB, 95 views)
battoukun is offline   Reply With Quote
Old 07-07-2010, 04:48 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 3
supersabbath is on a distinguished road
Default

did you find any solution? and trying to do the same kind of draw but i dont know how to do it. pleas post
supersabbath is offline   Reply With Quote
Old 07-08-2010, 12:51 AM   #3 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 43
ashishjraval is on a distinguished road
Default

Quote:
Originally Posted by battoukun View Post
Hi, I'm having problems writing with my finger inside an UIImageView. I have a simple View based application and in my view I've added a UIImageView control which takes up the whole screen (iPhone screen) so I handled the touchesBegan, touchesMove and touchesEnded events in order to be able to draw a line where a user would swipe their fingers on the screen and this works correctly. The problem is if I resize the UIImageView control to any size less than the size of the screen then the drawing inside of it gets messed up, it tends to shrink to the left or to the bottom depending on how I modified the size of the UIImageView.

I'm attaching the sample application (it has only one view with the code mentioned above) in hope that someone could point me out in the right direction towards figuring out why is this happenning.

Thanks.
are u find the solution for the
then send me the code please it's urgent
and I want to how can i pinch my image in vertical ya horizontal.. please help me
ashishjraval is offline   Reply With Quote
Old 07-08-2010, 01:29 AM   #4 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 3
supersabbath is on a distinguished road
Default

hi there:
battoukun after reading you code, iŽve realized that you have a problem with the view hierarchy. the solution its to do touches recognition only in the small view.

to see your code working properly make the blue view as big as the screen and youŽll understand what im saying.
good luck
supersabbath is offline   Reply With Quote
Reply

Bookmarks

Tags
draw finger uiimageview

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: 349
13 members and 336 guests
akacaj, c2matrix, cgokey, esoteric, GHuebner, givensur, HemiMG, Mirotion22, mjnafjke, Pudding, SLIC, Sonuye857, Techgirl-52
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,652
Threads: 94,115
Posts: 402,887
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Sonuye857
Powered by vBadvanced CMPS v3.1.0

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