Chr*_*aft 4 iphone cocoa-touch
有没有人有关于如何使用Cocoa Touch创建模态警报视图的最佳实践,提示和技巧或建议?
我认为有一种方法可以使这项艰巨的任务变得微不足道或至少更容易.
Ger*_*.ch 13
你可以使用这样的东西:
void AlertWithMessage(NSString *message)
{
/* open an alert with an OK button */
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Name of the Application"
message:message
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles: nil];
[alert show];
[alert release];
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5823 次 |
| 最近记录: |