UIAlert View Objective C - Opening app store link

Posted by benhowdle89 on Stack Overflow See other posts from Stack Overflow or by benhowdle89
Published on 2010-12-12T14:51:48Z Indexed on 2011/01/01 6:53 UTC
Read the original article Hit count: 268

    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"An Alert!" 
                                                   delegate:self cancelButtonTitle:@"OK" otherButtonTitles:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=301349397&mt=8"]];];
    [alert show];
    [alert release];

I'm trying to display a UIAlertView with one "Ok" button and one "Buy Full Version" button. How can i make the above code work?

Thanks

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa-touch