1.showViewController 先看看说明: You use this method to decouple the need to display a view controller from the process of actually presenting that view controller onscreen. Using this method, a view controller does not need to know whether it is embedded…
打开cydia,搜索ifile(威锋源,版本2.1.0-1).打开ifile,进入路径/Applications.里面有许多程序文件,选择适当的进行禁用(ifile可以禁用程序的活动而不完全删除它,这对解决电池耗电问题已经足够了).禁用方式以“邮件”程序举例: 1.找到mobilemail.app,点击该栏右侧蓝色的“i"图标,进入后下滑到最下方,找到”ACCESS PERMISSIONS“单元.单元里有3个项目分别为User.Group.World.分别点击进入,又可看到4个选项Execute…
链接地址:http://blog.csdn.net/nextstudio/article/details/39959895?utm_source=tuicool 1.前言 iOS8新增了UIAlertController来代替UIAlertView.UIActionSheet的使用.本文在不使用UIAlertController的情况下,用最简单的方法让UIAlertView.UIActionSheet兼容iOS8.   2.UIAlertView iOS8下,如果UIAlertView初始化的…
iOS8新增了LocalAuthentication框架,用于TouchID的授权使用.亲測,眼下须要用户的设备支持指纹识别并已设置锁屏,并且实际測试过程中反馈比較慢.不能直接跟第三方账号password绑定,假设须要实现第三方应用直接指纹识别登录,须要在本地存储账号信息,指纹识别通过之后再从本地读取账号信息登录.总之.眼下的指纹识别是跟设备.设备锁屏password绑定的. 測试代码: ///使用TouchID -(void)usingTouchID { LAContext *myContex…
<欢迎大家加入iOS开发学习交流群:QQ529560119> /*      UIViewController is a generic controller base class that manages a view.  It has methods that are called      when a view appears or disappears.            Subclasses can override -loadView to create their cust…
路由是实现模块间解耦的一个有效工具.如果要进行组件化开发,路由是必不可少的一部分.目前iOS上绝大部分的路由工具都是基于URL匹配的,优缺点都很明显.这篇文章里将会给出一个更加原生和安全的设计,这个设计的特点是: 路由时用protocol寻找模块 可以对模块进行固定的依赖注入和运行时依赖注入 支持不同模块间进行接口适配和转发,因此无需和某个固定的protocol关联 充分解耦的同时,增加类型安全 支持移除已执行的路由 封装UIKit界面跳转方法,可以一键跳转和移除 支持storyboard,支持…
一.PPI 1.像素密度PPI:PPI(Pixel Per Inch by diagonal):表示沿着对角线,每英寸所拥有的像素(Pixel)数目. 根据勾股定理(直角三角形两边为a和b,斜边为c,那么 a²+b²=c²),可以得知iPhone4(s)的PPI计算公式为:  = 329.65 和标准的326 稍有出入,这是因为像素的离散采样有锯齿效应. 2.iPhone5屏幕尺寸为4英寸.iPhone6屏幕尺寸为4.7英寸,屏幕尺寸 指的是显示 屏幕 对角线的长度. 单位换算:   1 inc…
判断相机权限: NSString *mediaType = AVMediaTypeVideo; AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:mediaType]; if(authStatus == AVAuthorizationStatusRestricted || authStatus == AVAuthorizationStatusDenied){ //相机权限受限制…
iosiPhone屏幕尺寸.分辨率及适配     1.iPhone尺寸规格 设备 iPhone 宽 Width 高 Height 对角线 Diagonal 逻辑分辨率(point) Scale Factor 设备分辨率(pixel) PPI 3GS 2.4 inches (62.1 mm) 4.5 inches (115.5 mm) 3.5-inch 320x480 @1x 320x480 163 4(s) 2.31 inches (58.6 mm) 4.5 inches (115.2 mm)…
转:http://blog.csdn.net/phunxm/article/details/42174937 目录(?)[+]   1.iPhone尺寸规格 设备 iPhone 宽 Width 高 Height 对角线 Diagonal 逻辑分辨率(point) Scale Factor 设备分辨率(pixel) PPI 3GS 2.4 inches (62.1 mm) 4.5 inches (115.5 mm) 3.5-inch 320x480 @1x 320x480 163 4(s) 2.3…