Ios5 如何像在图像中一样显示信息消息

Ios5 如何像在图像中一样显示信息消息,ios5,ios4,Ios5,Ios4,如何显示消息“哪些帐户将从这些最佳实践中受益最大?请思考,添加客户名称并自我激励!”像弹出式显示一样?如果您正在谈论iOS SDK中的弹出式窗口,您将需要: UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"Announcement" message: @"Which accounts will benefit the most from these best practices?

如何显示消息“哪些帐户将从这些最佳实践中受益最大?请思考,添加客户名称并自我激励!”像弹出式显示一样?

如果您正在谈论iOS SDK中的弹出式窗口,您将需要:

UIAlertView *alert = [[UIAlertView alloc]
            initWithTitle: @"Announcement"
            message: @"Which accounts will benefit the most from these best practices? Think,add customer names and supercharge yourself!"
            delegate: nil
            cancelButtonTitle:@"OK"
            otherButtonTitles:nil];

// Show the popup  
[alert show];

对于包含您指定的消息,按钮标题为“确定”以取消该消息,标题为“公告”。

感谢回复,我需要在短信预览中显示弹出窗口。告诉我汤姆1)你不是很清楚-请清楚地定义你想要什么2)“告诉我汤姆”-礼仪很重要