代码之家  ›  专栏  ›  技术社区  ›  raaz

如何在iPhone底部显示uiAlertView?

  •  2
  • raaz  · 技术社区  · 15 年前

    通常uialertview会出现在iphone屏幕的中间,但我想把它显示在iphone的底部。 我该怎么做?

    1 回复  |  直到 15 年前
        1
  •  1
  •   Community CDub    8 年前

    你可以换一个 UIAlertView 的位置如下:

    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 ];
    

    你可以看到更多 here 是的。