Resize and Add Image to UIAlertView

Discussion in 'iOS Programming' started by jacksongan, Nov 6, 2009.

  1. macrumors member

    Joined:
    Aug 31, 2009
    #1
    this is my code:


    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.
     

Share This Page