Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

knut

macrumors newbie
Original poster
Jun 30, 2009
21
0
Hi All

I have next situation.

I have function which make some work and in some case pop up message box.
so.
how realize next logic in my function.

if user click ok continue exec function and if user click cancel return from function (i.e do not continue)
Code:
....
 if (imageCount == 0 && [promo_keys containsObject: @"TopCat"] || [promo_keys containsObject: @"HomePage"] || [promo_keys containsObject: @"Gallery"])
   {
     // alert mesage for existing image.
       UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"UIAlertView" message:@"<Alert message>" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
       [alert show];
       [alert release];
       
   }
....

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.