摘要: wx.getUserInfo(OBJECT) 微信官方的这个获取用户信息的方法,需要对接口返回的加密数据( encryptedData )进行对称解密。 阅读全文
posted @ 2017-05-06 14:59 蔡-Rd 阅读(40921) 评论(10) 推荐(8) 编辑
摘要: 突然想写博客 , 毕竟早上一直打不开Azure的官方文档 , 想找个中文也没有 , 原文英文链接 : How to: Configure an Azure SQL Database firewall using the Azure Portal 一年没有更新博客 , 毕竟变成大四狗了 , 这次解决问 阅读全文
posted @ 2016-04-23 10:51 蔡-Rd 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1、自定义相册(兼容 iOS7 iOS8)- (void)viewDidLoad {//search all photo albums in the library [assetsLibrary enumerateGroupsWithTypes:ALAssetsGroupAlbum usingBlo... 阅读全文
posted @ 2015-04-21 16:01 蔡-Rd 阅读(2111) 评论(0) 推荐(0) 编辑
摘要: 问题描述:在苹果的 iOS8.0以上, 当你创建完一个相册, 例如名为"Rd", 然后在相册中手动删除了这个"Rd"相册, 再次通过代码#import ALAssetsLibrary *assetsLibrary = [[ALAssetsLibrary alloc] init]; ... 阅读全文
posted @ 2015-04-16 18:22 蔡-Rd 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 我知道的摇一摇有以下2种方案: 一、直接用系统自带的motionBegan方法 -(void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event 假如程序不响应此方法,试着加入下面方法: -(BOOL)canBecomeFirs 阅读全文
posted @ 2015-04-15 15:24 蔡-Rd 阅读(1328) 评论(1) 推荐(0) 编辑
摘要: BaseReqpublic Base class of all request classes of WeChat SDK. Import WXApiObject.h;property (int) type int BaseReq::typeRequest type (NSString *) o... 阅读全文
posted @ 2015-03-12 20:51 蔡-Rd 阅读(1775) 评论(0) 推荐(0) 编辑
摘要: OC简介C语言的基础上,增加了一层最小的 面向对象语法;完全兼容C语言;可以在OC代码忠混入C语言代码,甚至是C++代码;可以使用OC开发Mac OS X平台和IOS平台的应用程序;OC语法预览关键字字符串以@开头比如@"hello"是OC中 的字符串,而"hello"则是C语言忠的字符串其他语法O... 阅读全文
posted @ 2014-11-07 15:25 蔡-Rd 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 10、结构体(Structure) 10.1结构体的定义 打印:12 10.2结构体的构造函数 打印:21 10.3结构体是值类型 打印:"HuaHua",说明myTV的值没有改变,说明是值类型 10.4了解结构体和类的选择 11、协议(Protot... 阅读全文
posted @ 2014-10-31 18:49 蔡-Rd 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 9、类(Class) 9.1类的构造 9.2类是值类型还是引用类型 9.3恒等式 9.4关于指针 9.5类的构造init()和析构deinit{} 9.6类的继承(Inheritance) 9.6.1子类继承父类的定义 9.6.2构造函数修改以及访问父类的属性和方... 阅读全文
posted @ 2014-10-28 23:22 蔡-Rd 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 7、闭包(Closure)7.1语法表达式 7.1.1作为上下文推断类型 7.1.2单行表达式隐式返回 7.1.3参数名称缩写 8、枚举(Enumeration) 8.1枚举语法 8.2匹配枚举值和Swift语句 8.3实例指 8.4原始值 8.5举例子 阅读全文
posted @ 2014-10-28 21:18 蔡-Rd 阅读(180) 评论(0) 推荐(0) 编辑