摘要: 在加密和解密中,我们需要了解的知识有什么事openssl;RSA加密算法的基本原理;如何通过openssl生成最后我们需要的der和p12文件。 废话不多说,直接写步骤: 第一步:openssl来生成公钥和私钥证书,最后需要得到公钥证书和私钥证书 。 这是在mac OX系统下显示的证书,如果我们用文 阅读全文
posted @ 2016-07-01 17:36 AntonyGu 阅读(6370) 评论(1) 推荐(0) 编辑
摘要: 这篇文章来自iOS Tutorial Team 成员 Marcelo Fabri, 他是 Movile 的一个iOS开发者. Check out his personal website or follow him on Twitter.原文地址 当我们开发iOS应用时,好的性能对我们的App来说是 阅读全文
posted @ 2016-06-29 19:58 AntonyGu 阅读(2062) 评论(0) 推荐(0) 编辑
摘要: 一、延迟执行 1.介绍 iOS常见的延时执行有2种方式 (1)调用NSObject的方法 [self performSelector:@selector(run) withObject:nil afterDelay:2.0]; // 2秒后再调用self的run方法 (2)使用GCD函数 dispa 阅读全文
posted @ 2016-06-24 10:25 AntonyGu 阅读(161) 评论(0) 推荐(0) 编辑
摘要: // 字符串转Data NSString *str =@"jesfds"; NSData *data =[str dataUsingEncoding:NSUTF8StringEncoding]; //NSData 转NSString NSString *result =[[ NSString all 阅读全文
posted @ 2016-06-15 19:45 AntonyGu 阅读(6652) 评论(0) 推荐(1) 编辑
摘要: iOS 加密算法有那么几种,如 md5,sha1,AES,base64 和 rsa 等。 1. md5: MD5即Message-Digest Algorithm 5(信息-摘要算法5),用于确保信息传输完整一致。是计算机广泛使用的杂凑算法之一(又译摘要算法、哈希算法),主流编程语言普遍已有MD5实 阅读全文
posted @ 2016-06-15 19:44 AntonyGu 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: x轴旋转: CABasicAnimation *theAnimation; theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.rotation.x"]; theAnimation.duration=8; theAnimat 阅读全文
posted @ 2016-05-20 15:25 AntonyGu 阅读(718) 评论(0) 推荐(0) 编辑
摘要: 解决方法: 1. CABasicAnimation *thisAnimation = [CABasicAnimtaion animationWithKeyPath:@"transform.rotation.z"]; thisAnimation.removedOnCompletion = NO; 2. 阅读全文
posted @ 2016-05-20 15:18 AntonyGu 阅读(2425) 评论(0) 推荐(0) 编辑
摘要: 概述 由于ObjC主要基于Smalltalk进行设计,因此它有很多类似于Ruby、Python的动态特性,例如动态类型、动态加载、动态绑定等。今天我们着重介绍ObjC中的键值编码(KVC)、键值监听(KVO)特性: 键值编码KVC 我们知道在C#中可以通过反射读写一个对象的属性,有时候这种方式特别方 阅读全文
posted @ 2016-05-19 12:25 AntonyGu 阅读(162) 评论(0) 推荐(0) 编辑
摘要: CABasicAnimation animationWithKeyPath Types When using the ‘CABasicAnimation’ from the QuartzCore Framework in Objective-C, you have to specify an ani 阅读全文
posted @ 2016-05-19 10:54 AntonyGu 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 随着iPhone设备出现了不同的尺寸,iOS6.0以后storyboard和xib文件新增了一个Use Auto Layout选项,用来实现自动布局。当你勾选上这个选项,以前传统的布局方式将不能正常工作。一旦使用了自动布局,就要忘记 Frame 的概念! 要判断UIView是否可以使用自动布局,可以 阅读全文
posted @ 2016-05-06 18:11 AntonyGu 阅读(220) 评论(0) 推荐(0) 编辑