2016年8月10日

ios 计算文字占用高度

摘要: 自动计算的方法: 使用方法如下: 阅读全文

posted @ 2016-08-10 15:55 codemaker313 阅读(754) 评论(0) 推荐(0) 编辑

ios 拨打电话

摘要: NSString *telString = [[dict objectForKey:@"send_user_info"] objectForKey:@"tel"]; UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"拨打电话... 阅读全文

posted @ 2016-08-10 15:50 codemaker313 阅读(153) 评论(0) 推荐(0) 编辑

2016年8月9日

ios8中,addAssetsGroupAlbumWithName 相册创建后手动删除,不能再进行创建显示

摘要: // Add a new ALAssetsGroup to the library. // The name of the ALAssetsGroup is name and the type is ALAssetsGroupAlbum. The editable property of this 阅读全文

posted @ 2016-08-09 10:42 codemaker313 阅读(204) 评论(0) 推荐(0) 编辑

ios - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender 的写法

摘要: 写法1: 写法2: 阅读全文

posted @ 2016-08-09 09:06 codemaker313 阅读(830) 评论(0) 推荐(0) 编辑

2016年7月29日

iOS标准时间与时间戳相互转换

摘要: 1 NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; 2 [formatter setDateStyle:NSDateFormatterMediumStyle]; 3 [formatter setTimeStyle:NSDateFormatterShortStyle]; 4 [format... 阅读全文

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

iOS UIWebView 允许所有三方cookie

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

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

2016年7月14日

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 阅读(210) 评论(0) 推荐(0) 编辑

2016年7月2日

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 阅读(497) 评论(0) 推荐(0) 编辑

2016年6月30日

ios 跨页返回,从navigationController 删除指定页面

摘要: 1 - (void)removeVC:(UIViewController *)urViewControllerClass 2 { 3 // NSArray* tempVCA = [self.navigationController viewControllers]; 4 NSMutableArray *tempVCA = [NSMutableArray arrayW... 阅读全文

posted @ 2016-06-30 17:30 codemaker313 阅读(542) 评论(0) 推荐(0) 编辑

2016年6月23日

ios appdelegate中获取当前显示页

摘要: ios appdelegate中获取当前显示页 网上有很多种方法,但是都不好使,找到了这个好使的,和大家分享下。 阅读全文

posted @ 2016-06-23 13:47 codemaker313 阅读(422) 评论(0) 推荐(0) 编辑

导航