0
A
回答
1
使用本
UIAlertView *successAlert = [[UIAlertView alloc] initWithTitle:title message:message delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(220, 10, 40, 40)];
NSString *path = [[NSString alloc] initWithString:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"smile.png"]];
UIImage *bkgImg = [[UIImage alloc] initWithContentsOfFile:path];
[imageView setImage:bkgImg];
[bkgImg release];
[path release];
[successAlert addSubview:imageView];
[imageView release];
[successAlert show];
[successAlert release];
複製形式here
相關問題
- 1. 在Xcode中添加多個警報到單個警報視圖
- 2. 如何從警報視圖添加數據到我的表
- 3. WPF用笑臉圖標代替笑臉
- 4. 如何使用RichTextBox在WP7中添加笑臉?
- 5. 如何在Edittext中添加笑臉/表情符號?
- 6. 如何在警報視圖中的文本之間添加圖像?
- 7. IOS如何檢測警報已添加爲子視圖
- 8. 笑臉系統:事件添加圖像在文本區失敗
- 9. 警報視圖顯示我警告
- 10. 在使用笑臉的列表視圖中的webserivce消息
- 11. 如何添加表情(笑臉)到WPF的富文本框
- 12. iPhone中的警報視圖
- 13. 如何在大會中打印笑臉?
- 14. 如何在textview中顯示通過鍵盤添加的笑臉如:-)或B-)?
- 15. 如果我添加一個「警報」
- 16. Android:如何在臉上添加臉紅
- 17. 在另一個警報視圖上顯示警報視圖
- 18. 在uitextfield中顯示笑臉圖標
- 19. Java笑臉替代字符串笑臉
- 20. 在短信應用程序中添加笑臉
- 21. 是否可以在消息NSLocationWhenInUseUsageDescription中添加笑臉?
- 22. 警報視圖中iOS7
- 23. 試圖將振動和聲音添加到我的警報視圖
- 24. PHP文本圖形笑臉
- 25. 如何在OpenERP 7的報價樹視圖中添加新列
- 26. 如何通過取消舊警報和添加新警報來更新警報?
- 27. 如何添加臉部圖像到使用php的視頻
- 28. 如何自定義iOS警報視圖?
- 29. 如何創建表警報視圖
- 30. 如何用報警打開視圖?
感謝。它正在工作...... – Trup