摘要: 在程序里面写调用相机 如果设备不支持照相就会出现程序崩溃 那就需要在调用相机之前先判断该设备是否支持照相 判断是否支持照相代码如下 if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceType 阅读全文
posted @ 2017-03-14 17:44 小谢0217 阅读(146) 评论(0) 推荐(0)
摘要: 正常继承自UIView新建的view是不包含xib的自己新建的 xib 关联 view 以后,在 xib 上拖拽 tableView等包含有 delegate 的控件时,当和UIViewController一样直接拖拽代理的时候会出现-[ViewController numberOfComponen 阅读全文
posted @ 2017-03-14 17:17 小谢0217 阅读(876) 评论(0) 推荐(0)
摘要: 以前在 view 里面跳转的时候都是定义一个ViewController然后把主页的 NAV带过来 然后 push 最近发现在这个不是通用的 所以又查找到别的方法 - (UIViewController *)viewController { for (UIView* next = [self sup 阅读全文
posted @ 2017-03-14 16:58 小谢0217 阅读(189) 评论(0) 推荐(0)