07 2016 档案

iOS标准时间与时间戳相互转换
摘要:1 NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; 2 [formatter setDateStyle:NSDateFormatterMediumStyle]; 3 [formatter setTimeStyle:NSDateFormatterShortStyle]; 4 [format... 阅读全文

posted @ 2016-07-29 11:01 codemaker313 阅读(8754) 评论(0) 推荐(0)

iOS UIWebView 允许所有三方cookie
摘要:前几天项目中用到UIWebView, 而在网页中,用到了建行缴费。但是在缴费的时候出现“请您在浏览器中清理并设置接受服务器下传的cookie,错误码0130Z1108006”,而安卓是没有这种情况的,于是就在找原因。找了很久也没有找到原因。一开始想到的是没有加载建行的cookie,于是打印cooki 阅读全文

posted @ 2016-07-29 10:56 codemaker313 阅读(1775) 评论(0) 推荐(0)

ios 纯代码加载UIButton
摘要:UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom]; backButton.frame = CGRectMake(16, 40, 45, 45); [backButton addTarget:self action:@selector(splashBack:) forContr... 阅读全文

posted @ 2016-07-14 16:24 codemaker313 阅读(212) 评论(0) 推荐(0)

iOS 9以上系统调用不了支付宝客户端只能调用网页解决方法
摘要:1.为了适配 iOS9.0 中的 App Transport Security(ATS)对 http 的限制,这里需要对 支付宝的请求地址 alipay.com 做例外,在 app 对应的 info.list 中添加如下配置 (文中以 XML 格式描述)。 2.同时需要在Plist中设置支付宝为白名 阅读全文

posted @ 2016-07-02 15:26 codemaker313 阅读(501) 评论(0) 推荐(0)

导航