摘要: NSBundle NSBundle继承于NSObject,NSBundle是一个程序包,其中包含了程序会使用的资源(图像,声音,编辑好的代码,nib文件)。 一. 初始化NSBundle + (instancetype)bundleWithURL:(NSURL *)url + (instancety 阅读全文
posted @ 2016-03-21 14:39 逆的态度 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 屏幕尺寸 CGRect screen = [UIscreen mainScreen].bounds 状态栏尺寸 CGRect rect = [[UIApplication sharedApplication] statusBarFrame]; app尺寸 CGRect r = [UIScreen m 阅读全文
posted @ 2016-03-21 14:12 逆的态度 阅读(121) 评论(0) 推荐(0) 编辑
摘要: iOS中,我们选择相册中的资源和调用摄像头可以使用 :UIImagePickerController类来完成,不使用UI我们可以通过:ALAssetsLibrary类来使用相册资源。 一. ALAssetsLibrary简介 ALAssetsLibrary提供了访问了iOS设备下所有照片和视频的接口 阅读全文
posted @ 2016-03-21 11:35 逆的态度 阅读(319) 评论(0) 推荐(0) 编辑