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

View Single Post
Old 08-23-2009, 05:02 PM   #1 (permalink)
AppStoreMod
Registered Member
 
AppStoreMod's Avatar
 
Join Date: Jul 2009
Location: Sacramento,CA
Posts: 90
AppStoreMod is on a distinguished road
Send a message via Skype™ to AppStoreMod
Default How do I make it to where 2 UIImageViews touch a UIAlertView pops up ?

Hi ! I am trying to make it where a falling object with this animation code:

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[UIView setAnimationRepeatCount:0];
myBalloon.center = moveRight.center;
[UIView commitAnimations];

This code makes the UIImageView go from one image to another. I have it where another code moves from left to right. I did this code to try and make it where if the 2 ImageViews touch an alertview would pop up but it doesn't work. Here is the code.

if (CGRectIntersectsRect(myNail.frame, myBalloon.frame)) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"hit!" message:@"yeah man!" delegate:self cancelButtonTitle:@"dismiss" otherButtonTitles:nil];
[alert show];
[alert release];
}

Its just not working and I tried it on a different project like when it doesn't move just one view from another and it just doesn't wanna work. Can anyone help ? Please and thank you.
AppStoreMod is offline   Reply With Quote
 

» Advertisements
» Online Users: 715
21 members and 694 guests
ADY, baja_yu, clarky07, dcool, deviceful, djboby, dljeffery, e2applets, GHuebner, JmayLive, jstonebrook, LCANT, nightcrawler2349, poke, reficul, sacha1996, sneaky, spiderguy84, syam_mchrome, Wikiboo, Yoshkow
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,171
Threads: 93,916
Posts: 402,130
Top Poster: BrianSlick (7,966)
Welcome to our newest member, arlethatm26
Powered by vBadvanced CMPS v3.1.0

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