到目前为止,这是我的代码,我可以获得一个可以工作的 URL,但我想从此警报选项卡加载一个 nib
- (IBAction)aboutAction { // The action called when the about button is clicked.
UIAlertView * aboutView = [[UIAlertView alloc] initWithTitle:@"Alert:" // Create a new UIAlertView named aboutScreen, and allocate it. Set the title to "About"
message:@"MESSAGE GOES HERE"
delegate:self
cancelButtonTitle:@"Got It Thanks!"
otherButtonTitles:@"Donate Now", nil];
[aboutView show]; // Show the UIAlertView on the screen.
[aboutView release]; // Release the UIAlertView from the memory.
}
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
if(buttonIndex == 1) { //Not sure what to do here.
}
}