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

View Single Post
Old 09-26-2009, 06:27 PM   #2 (permalink)
coder19
Registered Member
 
Join Date: Jul 2009
Posts: 57
Default

Quote:
Originally Posted by evana View Post
Hello everyone. I am very new in in this development field.In my application i have an image of a road i want to touch this image if i touch outside of the road image its alert me but i dont know the touch function of UIImage can any one help me about this.
You can just use touchesEnded, then just check if the touch occurred on the road or not.

Code:
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
  UITouch *touch = [touches anyObject];
  if(touch.view == myRoadView){
   ...
  }
}
__________________
My Apps: iTouchdown, Finger Fogger, Tri-Ominos
coder19 is offline   Reply With Quote
 

» Advertisements
» Online Users: 270
21 members and 249 guests
ADY, aikhan, AppAnnex, astalavista, chemistry, HemiMG, ilmman, MarkC, mer10, nicko, NSeven, padsoftware, Paul10, pavanindira, Raffaello, sneaky, syver, tathaastu, timle8n1, touchcream, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,219
Posts: 380,708
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:28 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.