PDA

View Full Version : Resize and Add Image to UIAlertView




jacksongan
Nov 6, 2009, 06:14 AM
this is my code:


-(void)willPresentAlertView:(UIAlertView *)alert { alert.frame = CGRectMake( 5, 10, 100, 100 ); }

- (void)tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

UIAlertView *alert = [[UIAlertView alloc] initWithTitle: nil
message:@"If you're trying to drill down, touch that instead"
delegate:nil
cancelButtonTitle:@"ok"
otherButtonTitles:nil];
[alert show];
[alert release];
}

In addition to that, i try to insert an image into the code, but as i cant resize the alert view, the image is always bigger than the alert view itself.