自定义带有UITableView的UIAlertView

时间:2016-06-20 04:46:19
【文件属性】:
文件名称:自定义带有UITableView的UIAlertView
文件大小:46KB
文件格式:ZIP
更新时间:2016-06-20 04:46:19
ios UIAlertView UITableView 项目中用到带有带有UITableView的UIAlertView,刚开始的做法 是 UIAlertView 的基础上addsubview上UITableView,UITableView的大小固定,但是 出现 横屏的时候 UITableView跟UIAlertView的大小不搭配了 ,后来自定义一个UIAlertView的继承类,重写了 layoutSubviews方法,可以用于横竖屏切换 ,UITableView的位置大小 在 UIAlertView内。
【文件预览】:
alertTest
----ViewController.m(7KB)
----.DS_Store(6KB)
----UiAlertTableView.m(1KB)
----alertTest-Info.plist(1KB)
----en.lproj()
--------ViewController.xib(11KB)
--------InfoPlist.strings(45B)
----main.m(336B)
----alertTest-Prefix.pch(321B)
----UiAlertTableView.h(585B)
----Default-568h@2x.png(18KB)
----ViewController.h(525B)
----AppDelegate.h(364B)
----Default.png(6KB)
----Default@2x.png(16KB)
----AppDelegate.m(2KB)
alertTest.xcodeproj
----project.xcworkspace()
--------contents.xcworkspacedata(154B)
--------xcuserdata()
----xcuserdata()
--------shinqiang.xcuserdatad()
----project.pbxproj(14KB)

网友评论

  • 多谢分享。。。。。。
  • 下下来貌似用不了诶~
  • UITableView的使用 包括简单的搭建UITableView、搭建分组的UITableView、搭建分段的UITableView、可删除行等等
  • 不错,容易看明白,谢谢
  • 不错,容易看明白,谢谢
  • 非常好的例子啊,受益了!!!!
  • 这个demo有问题,在退出后,双击HOME键,然后将该demo从后台关闭时,demo就崩溃了,并且控制台里没有任何有用的信息出现,错误提示也没有。再次开启demo就无响应了。
  • 很好的学习例子,通过这个,我也写出了模态对话框
  • 不错,容易看明白,谢谢
  • 很不错的demO
  • 很好的学习例子
  • 很好的学习例子,通过这个,我也写出了模态对话框