May 17, 2010

(Iphone)How to move up an UIAlertView

Here is a trick to move your UIAlertView up on the screen.

UIAlertView * alert = [ [ UIAlertView alloc ] initWithTitle:@"Alert" 
message:@"Alert" 
delegate:self 
cancelButtonTitle:@"OK" 
otherButtonTitles:nil ];

alert.transform = CGAffineTransformTranslate(alert.transform, 
0.0, 100.0);

[ alert show ];

1 comment:

Anonymous said...

small and simple.help me thanks.