2015年12月26日

iOS支付宝支付--密钥制作

摘要: 本文作为"iOS支付宝支付适配iOS9"补充--密钥制作(mac)一.打开终端第一行:openssl第二行:genrsa -out rsa_private_key.pem 1024第三行:rsa -in rsa_private_key.pem -pubout -out rsa_public_key.... 阅读全文

posted @ 2015-12-26 18:11 Alice's 阅读(1423) 评论(0) 推荐(0) 编辑

iOS支付宝支付

摘要: 支付宝支付 -- 适配iOS9首先我们一起看一下,最终调起支付宝完成支付的必要参数和方法(Order类由支付宝demo中提供) 1 Order *order = [Order new]; 2 order.partner = kAliPayPartner; 3 order.selle... 阅读全文

posted @ 2015-12-26 17:07 Alice's 阅读(1266) 评论(3) 推荐(1) 编辑

2015年8月15日

iOS微信支付

摘要: 移动支付盛行,app接入逐渐成为标配今天和大家分享一下微信支付的接入调起微信支付的整个流程是:一、在appDelegate中配置,并写好方法接受微信返回信息,二、调用后台接口(自定义)与微信交互,微信返回必要参数,其中最主要一个参数是prepay_id三、使用appid、noncestr(下面有详细... 阅读全文

posted @ 2015-08-15 17:36 Alice's 阅读(689) 评论(0) 推荐(1) 编辑

2015年7月10日

XMCarWashing

该文被密码保护。 阅读全文

posted @ 2015-07-10 00:17 Alice's 阅读(5) 评论(0) 推荐(0) 编辑

2015年5月19日

iOS 使用NSCharactorSet,过滤再也不用求正则

摘要: 虽然网上已有很多写好的正则可以直接套用,但开发中,不乏产品特殊需求下面给大家推荐一个类,让过滤变得更加便捷------- NSCharactorSet在ios中 可以使用stringByTrimmingCharactersInSet函数过滤字符串中的特殊符号首先我们定义一个NSCharacter... 阅读全文

posted @ 2015-05-19 15:07 Alice's 阅读(263) 评论(0) 推荐(0) 编辑

2015年4月14日

iOS Interface builder was unable to determine the type of xxx.xib / xxx.storyboard

摘要: 上午开工程出现, "Interface builder was unable to determine the type of xxx.xib" 错误svn上报冲突(conflict),xib文件爆红郁闷百度 google stack 没有找到答案于是只能,喝口奶自己研究xib的真身是xml文件,于... 阅读全文

posted @ 2015-04-14 11:43 Alice's 阅读(1571) 评论(0) 推荐(0) 编辑

2015年3月10日

iOS 系统自带JSON解析,NSJSONReadingOptions参数解读

摘要: 开发中,我们经常需要解析JSON数据,系统提供的[NSJSONSerialization JSONObjectWithData:[objcdataUsingEncoding:NSUTF8StringEncoding] options:(NSJSONR... 阅读全文

posted @ 2015-03-10 17:12 Alice's 阅读(1017) 评论(0) 推荐(0) 编辑

2015年2月28日

iOS 程序退到后台,如何继续执行任务

摘要: 程序从前台退到后,将执行程序的委托方法。- (void)applicationDidEnterBackground:(UIApplication*)application{}问题:当应用被送到后台,主线程就会被暂停。用NSThread的detachNewThreadSelector:toTar ge... 阅读全文

posted @ 2015-02-28 12:01 Alice's 阅读(6097) 评论(0) 推荐(0) 编辑

2015年2月5日

iOS Cocopods error:RPC failed result=52,HTTP code=0

摘要: Cocopods本身是一个优秀的 iOS 开发的包管理工具,涵盖了 7k+ 的开源组件,包管理库是托管在 Github。众所周知的原因它的速度日渐缓慢,有时会频繁报如下错误:1234567$ pod installCloning into '/path/to/ios/project/Pods/xxx... 阅读全文

posted @ 2015-02-05 13:36 Alice's 阅读(972) 评论(0) 推荐(0) 编辑

2015年1月25日

Swift 学习 --- 基础<二>

摘要: // Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"//------------------------- 类和结构体的相同与不同 ------------------... 阅读全文

posted @ 2015-01-25 23:58 Alice's 阅读(173) 评论(0) 推荐(0) 编辑

导航