- 博客(10)
- 收藏
- 关注
原创 iOS JSPatch 解析array里的dictionary对象
var soldarr=data.jsonDict("data").jsonArray("soldArr") ;var tempArr= soldarr.toJS();//将arr转换成js类型 for (var i = 0; i < soldarr.count(); i ++) { var dd=tempArr[i];//获取dic var name =dd["name"...
2018-04-23 15:50:11
237
原创 Xcode8.3.3 出现 Could not locate device support files解决办法
Xcode 出现 Could not locate device support files,This iPhone 6sPlus is running iOS 11.0 (15A5278f), which may not be supported by this version of Xcode.在applications里找到Xcode.app 打开路径/Applications/Xcode
2017-06-14 17:17:08
1327
原创 iOS多种cell使用FDTemplateLayoutCell自动计算高度
两种cell,一种XIBcell,一种代码创建使用masonry布局的cell项目git地址 注册cell [_myTable registerNib:[UINib nibWithNibName:@"myIBCell" bundle:nil] forCellReuseIdentifier:@"ibcell"]; [_myTable registerClass:[maso
2017-04-21 13:33:02
771
原创 iOS 微信支付demo问题 kCFStreamNetworkServiceTypeVoIP
iOS 微信demo问题 1 Apple Mach-O Linker Error _kCFStreamNetworkServiceTypeVoIP` 2 [_NSArrayM enqueue:]:Undefined symbols for architecture x86_64: “_kCFStreamNetworkServiceTypeVoIP”, referenced from
2017-04-20 14:14:48
636
原创 swift delegate代理和block的使用
不多说直接上代码 声明// TestDelegateView.swift// blockAndDelegate//// Created by jarvis on 2016/11/18.// Copyright © 2016年 jarvis jiang. All rights reserved.import UIKit@objc protocol testDelegate {
2016-11-18 17:04:33
514
原创 iOS alertController之actionsheet样式添加控件(类似自定义actionsheet)
“`javascriptNSString *title = UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation) ? @”\n\n\n\n\n\n\n\n\n” : @”\n\n\n\n\n\n\n\n\n\n\n\n” ; UIAlertController*alert=[UIAlertControlle
2016-11-14 14:52:59
1375
原创 iOS 10 真机LOG
iOS 10真机无log 调用以下宏#define JWLog(...) printf("%s 第%d行: %s\n\n", [JWString UTF8String] ,__LINE__, [[NSString stringWithFormat:__VA_ARGS__] UTF8String]);#else#define JWLog(...)#endif
2016-11-14 14:40:16
308
转载 iOS预览PDF文档 UIDocumentInteractionController
摘自:http://www.cocoachina.com/ios/20130515/6212.htmliOS中的沙盒可以让平台更加的安全,这也是沙盒给用户带来的最主要好处。不过由于沙盒的严格限制,导致程序之间共享数据比较麻烦。一般在程序间共享文档可以通过UIDocumentInteractionController(该类经常被开发者忽略)。本文中,我将介绍如何使用这个类在其它程序(
2015-12-23 14:00:45
685
原创 iOS判断手机号邮箱网址的正则
// 正则判断手机号码地址格式+(BOOL)isMobileNumber:(NSString *)mobileNum{ //去掉字符串中两边的空格 NSString *finalStrMobile = [mobileNum stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; /**
2015-11-27 15:53:53
407
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人