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-06-2008, 10:32 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Germany
Posts: 21
Default dispatchTouchEndEvent

Hi,

I have modyfied the Touches sample Code:

Excluded (void)touchesMovedNSSet *)touches withEventUIEvent *)event
and the squares are in fixed position and the animation works. It was my intention.
If I touch inside the square it grows, but if I pull my finger to the background it does't shrinks and the dispatchTouchEndEvent does't works. Here is the dispatch Code:

Code:
-(void) dispatchTouchEndEvent:(UIView *)theView toPosition:(CGPoint)position
{   
	// Check to see which view, or views,  the point is in and then animate to that position.
	if (CGRectContainsPoint([firstPieceView frame], position)) {
       [self animateView:firstPieceView toPosition: position];
	} 
	if (CGRectContainsPoint([secondPieceView frame], position)) {
        [self animateView:secondPieceView toPosition: position];
	
	} 
	if (CGRectContainsPoint([thirdPieceView frame], position)) {
		[self animateView:thirdPieceView toPosition: position];
	
	}

Can somebody help me?
kuba1234 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: 260
19 members and 241 guests
ADY, Alsahir, beleg_1998, Dani77, e2applets, iph_s, JasonR, mer10, Monstertaco, piesia, prchn4christ, Promo Dispenser, Robiwan, Rudy, smithdale87, timle8n1, Touchmint, twerner
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,757
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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