2
A
回答
4
你想要UIAlertView类。例如:
UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:@"Something happened"
message:@"And here is some more information about what it is."
delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[myAlert show];
[myAlert release];
0
使用Interface Builder创建一个NS Window
。在你的appdelegate中,打开窗口。
+0
但我希望它看起来像这样.. http://artoftheiphone.com/wp-content/uploads/FTP/GPush5.jpg 我可以这样做吗? – user377419 2010-07-12 17:17:37
+0
mcandre:阅读问题和标签。 Cocoa Touch是指iOS上的Cocoa框架,而不是Mac上的。 NSWindow在任何情况下都不会是合适的课程。 – 2010-07-12 17:35:35
0
另一种选择是CFUserNotification。 UIAlertView的优点是它不要求你链接到UIKit。
相关问题
- 1. 是否可以在触摸UI对话框中包含文件?
- 2. 可可触摸 - AVFoundation
- 3. 可可触摸 - 在UIImageView中触摸
- 4. 可可触摸:动画上的触摸
- 5. 可可触摸 - 查看框架
- 6. 建筑与可可触摸框架
- 7. 嵌套的可可触摸框架
- 8. 的iUI框架与可可触摸
- 9. 可可触摸 - 文本框问题
- 10. “可可触摸静态库”
- 11. XML与可可触摸
- 12. 可可触摸NStimer问题
- 13. 可可触摸 - 定时器
- 14. 可可触摸 - 加载AVAudioPlayer
- 15. 可可触摸 - 视图
- 16. 可可触摸 - UITextView颜色
- 17. 可可触摸UITableView数据
- 18. 可可触摸NSRegularExpression模式
- 19. 在可可触摸中实现基于触摸的旋转
- 20. 迁移可可触摸项目可可
- 21. 可可触摸 - 设置触摸的最大数量
- 22. 可可触摸:如何在触摸传递到另一个对象
- 23. 可选对话框
- 24. 可可触摸 - 用触摸点绘制核心图形
- 25. iPhone SDK使按钮不可触摸/可触摸
- 26. 可可触摸:如何做布局
- 27. 可可触摸 - UIButtons - 继承UIButton
- 28. 可可触摸 - 问题与UIScrollView
- 29. 如何在触摸对话框外触碰事件?
- 30. drawrect vs layoutsubviews - NSView - 可可触摸
天才。谢谢!!!!! – user377419 2010-07-12 17:37:02
如果您不熟悉所有Cocoa Touch UI元素,我建议您抓取Apple示例项目“UICatalog”http://developer.apple.com/iphone/library/samplecode/UICatalog/Introduction/Intro.html – 2010-07-12 17:41:44