摘要: iOS8开放了安装第三方键盘的权限,在项目开发中,有些情况是需要禁用掉第三方键盘。 比如说,数字键盘上需要自定义按扭,但是在第三方键盘弹出时,按扭就覆盖在这上面了,在这个情况,最好的办法是禁用第三方键盘。 - (BOOL)application:(UIApplication *)applicatio 阅读全文
posted @ 2018-04-12 13:38 wj0920wjx 阅读(260) 评论(0) 推荐(0)
摘要: +(UIImage *)lineWithImageView:(UIImageView *)imageView{ CGFloat width = imageView.frame.size.width; CGFloat height = imageView.frame.size.height; UIGr 阅读全文
posted @ 2018-04-12 13:35 wj0920wjx 阅读(249) 评论(0) 推荐(0)
摘要: CAGradientLayer *layer = [CAGradientLayer layer]; layer.startPoint = (CGPoint){0.0f, 0.0f}; layer.endPoint = (CGPoint){0.0f, 1.0f}; layer.colors = [NS 阅读全文
posted @ 2016-07-11 14:26 wj0920wjx 阅读(166) 评论(0) 推荐(0)
摘要: info.plist文件中添加NSAppTransportSecurity NSAllowsArbitraryLoads iOS9新特性以及常见问题解决:推荐去查看:https://github.com/ChenYilong/iOS9AdaptationTips(注:推荐关注此作... 阅读全文
posted @ 2016-01-08 15:15 wj0920wjx 阅读(127) 评论(0) 推荐(0)
摘要: //切图- (UIImage*)screenView:(UIView *)view{ CGRect rect = view.frame; UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCu... 阅读全文
posted @ 2016-01-08 14:37 wj0920wjx 阅读(1034) 评论(0) 推荐(0)
摘要: 直接上源码:/** * 从任何字符中读取数字 * * @param str anyString * * @return 所有的数字 */-(NSMutableArray *)getAllNumberWithAnyString:(NSString *)str{ NSMutableC... 阅读全文
posted @ 2015-12-08 10:02 wj0920wjx 阅读(274) 评论(0) 推荐(0)
摘要: -(BOOL)isMobileNumberClassification{ /** * 手机号码 * 移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188,1705 * 联通:130,131,132,152,155,15... 阅读全文
posted @ 2015-06-23 14:32 wj0920wjx 阅读(450) 评论(0) 推荐(0)
摘要: http://beecloud.cn/doc/#sec_pay 阅读全文
posted @ 2015-06-23 14:25 wj0920wjx 阅读(213) 评论(0) 推荐(0)
摘要: 免费发布:http://fir.im免费网上传真:http://faxzero.com/素材网址:http://www.iconpng.com/苹果开源代码:http://opensource.apple.com中文论坛:http://www.cocoachina.com/http://bbs.51... 阅读全文
posted @ 2015-06-23 14:21 wj0920wjx 阅读(122) 评论(1) 推荐(0)
摘要: 一、iOS中的沙盒机制iOS应用程序只能对自己创建的文件系统读取文件,这个独立、封闭、安全的空间,叫做沙盒。它一般存放着程序包文件(可执行文件)、图片、音频、视频、plist文件、sqlite数据库以及其他文件。每个应用程序都有自己的独立的存储空间(沙盒)一般来说应用程序之间是不可以互相访问模拟器沙... 阅读全文
posted @ 2015-06-23 14:12 wj0920wjx 阅读(169) 评论(0) 推荐(0)