# AlertViewController
Adds ability to display `UIImage` above the title label of `UIAlertController`.
Functionality is achieved by adding “\n” characters to `title`, to make space
for `UIImageView` to be added to `UIAlertController.view`. Set `title` as
normal but when retrieving value use `originalTitle` property.
# UIAlertAction+Extensions
Adds ability to display image left of the action title, by leveraging KVC.
Also checks whether `UIAlertAction` responds to appropriate selector to
avoid crashes if property is not available in the future.
![](https://github.com/stringcode86/AlertViewController/raw/master/screenshot.png)
[stringcode.co.uk](http://www.stringcode.co.uk/?p=1156&preview=true)
[@stringcode](https://twitter.com/stringcode)
没有合适的资源?快使用搜索试试~ 我知道了~
`UIAlertController`子类显示警报标题上方的图像_Swift.zip
共23个文件
png:5个
swift:4个
json:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 165 浏览量
2023-04-05
13:10:15
上传
评论
收藏 1.13MB ZIP 举报
温馨提示
`UIAlertController`子类显示警报标题上方的图像_Swift.zip
资源推荐
资源详情
资源评论
收起资源包目录
`UIAlertController`子类显示警报标题上方的图像_Swift.zip (23个子文件)
AlertViewController-master
AlertViewController.xcodeproj
project.pbxproj 13KB
xcuserdata
stringcode.xcuserdatad
xcdebugger
Breakpoints_v2.xcbkptlist 91B
xcschemes
AlertViewController.xcscheme 3KB
xcschememanagement.plist 491B
project.xcworkspace
contents.xcworkspacedata 164B
AlertViewController
AlertViewController.swift 3KB
Base.lproj
Main.storyboard 3KB
LaunchScreen.storyboard 2KB
UIAlertAction+Extensions.swift 977B
AppDelegate.swift 2KB
ViewController.swift 900B
Info.plist 1KB
Assets.xcassets
Contents.json 62B
alert.imageset
passwordalert@2x.png 22KB
Contents.json 425B
passwordalert@3x.png 24KB
AppIcon.appiconset
Contents.json 1KB
close.imageset
Contents.json 409B
close@2x.png 87KB
close@3x.png 87KB
screenshot.png 1.05MB
.gitignore 1KB
README.md 758B
共 23 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功