2011-09-20 41 views

回答

1
  1. 这是UIAlertView中
  2. 这里执行任何教程是教程进行自定义UIAlertView
0

AlertView

 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title" 
                 message:@"Message" 
                 delegate:nil 
               cancelButtonTitle:@"Cancel" 
               otherButtonTitles:nil]; 
     [alert show]; 
     [alert release]; 
0

上的组件iPhone被称为UIAlertView。您可以在其中添加子视图以获取文本字段,尽管这不是Apple推荐的 - 但您也不会被拒绝。在iOS5中,有专门的UIAlertView类型。如果你正在为iOS5构建,这是你应该使用的方法。

相关问题