How to add subview inside UIAlertView for iOS 7
来源:互联网 发布:企业淘宝 编辑:程序博客网 时间:2024/05/25 18:09
I am having an application on iTunes store which displays some UILabel
and UIWebView
on UIAlertView
. According to session video, addSubView
for UIAlertView
will not work. They have talked about ContentView
. But in the GM Seeds SDK, I could not find that property and there seems to be no other way.
You can really change accessoryView to customContentView in iOS7 UIAlertView
[alertView setValue:customContentView forKey:@"accessoryView"];
Try this code:
UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"TEST" message:@"subview" delegate:nil cancelButtonTitle:@"NO" otherButtonTitles:@"YES", nil];UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];[av setValue:v forKey:@"accessoryView"];v.backgroundColor = [UIColor yellowColor];[av show];
But,to be sure that, i do't know if this will get rejected by apple.
0 0
- How to add subview inside UIAlertView for iOS 7
- How To Add Bookmarks Inside Vim Editor
- How to add subview to a webview so that the subview would scroll along with webview?
- Stack Overflow:iOS how to use UIAlertView
- Liferay 7 CE: How to add support for Oracle DB
- How to add event for usercontorl ?
- How to add SVN plugin for STS ?
- How to Update Your App for iOS 7
- How to add QuartzCore.framework for your project in xcode?
- how to add lun
- How to Create a Framework for iOS
- How to Create a Framework for iOS
- how to build DLIB for iOS
- How to Add Splash Screen in Your iOS App
- iOS app error - Can't add self as subview
- ios 'Can't add self as subview'崩溃日志详解
- iOS bug解决 Can't add self as subview
- How to create a custom directory for app files inside the ~/Library/Application Support directory.
- cocos2dx常见的46中+22中动作详解
- EXCEL:读取ACCESS数据库中指定表数据到EXCEL
- NYOJ-975-关于521
- 在centos配置mdcp注意事项
- sgu110-计算几何
- How to add subview inside UIAlertView for iOS 7
- cocos2dx-33种场景切换
- 项目---第三方API百度地图的使用总结
- 小发现之在SQL字符串比较中对其大小写不敏感
- ASP.NET应用程序资源访问安全模型
- MySQL复制原理及过程
- 图像处理之关键代码——Android
- cocos2dx人物行走例子
- C++UML类图