自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (1)
  • 收藏
  • 关注

原创 Mac 配置JenKins 自动化

1、Adopt Open JDKbrew cask install adoptopenjdk 下载最新版本brew tap AdoptOpenJDK/openjdk 选中版本安装如果一直卡在install adoptopenjdk,建议去官网下载2、HomeBrewbrew -v 检查是否安装未安装可以官网下载安装或者/usr/bin/ruby -e "$(curl...

2019-10-11 16:18:06 158

转载 Xcode account登录不上去

xcode account登录不上去sign apple id -> this action could not be completed. try again 1 2 3 sudo mkdir -p /Users/Shared sudo chown root:wheel /Users/Shared sudo chmod...

2019-06-14 17:21:41 1869

原创 点击UIAlertView弹窗外空白收回弹窗

点击UIAlertView弹窗外空白收回弹窗,UIAlertView是添加在[UIApplication sharedApplication].keyWindow上的   alert = [[UIAlertView alloc]initWithTitle:@"" message:message delegate:self cancelButtonTitle:@"马上升级" otherButto...

2018-11-15 17:56:55 295

原创 UIAlertView 与 Window

一、(正确操作)  _vipOpenView = [[VipOpenAlertView alloc]initWithFrame:self.view.frame title:@""];    _vipOpenView.delegate = self;    _vipOpenView.hidden = YES;    [[UIApplication sharedApplication].ke...

2018-11-15 17:50:52 369

原创 FMDB数据库操作

一、创建和读取 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);    NSString *doc = [paths objectAtIndex:0];    NSString *path = [doc stringByAppendingPath...

2018-11-15 17:41:25 225

原创 WKWebView 设置 UserAgent

一、全局设置UserAgent(必须等completionHandler回调完成才生效) [self.wkWebView evaluateJavaScript:@"navigator.userAgent" completionHandler:^(id result, NSError *error)     {         __strong typeof(weakself) strong...

2018-11-15 17:33:22 6957

原创 WKWebView 无法跳转新页面

preferences.javaScriptCanOpenWindowsAutomatically=YES;需要在初始化的时候配置

2018-01-03 09:57:12 4273

原创 WKWebView 加载样式错乱

千万不要设置最小字体大小!!!!!http://m.alpha.woxiaoyun.com/data/marketing/effect.htm?APP_SID=yZIvLybysazjIEQg1zpxpXlVbRkXhnuFg

2018-01-02 15:45:15 3114

转载 ios ipv6 支持

AFNetworkReachabilityManager.h文件更改之前:+ (instancetype)managerForAddress:(constvoid *)address;改成:+ (instancetype)managerForAddress:(conststructsockaddr_in6*)address;接下来更改.m文件

2017-12-07 09:14:56 164

转载 文件作为字典参数上传

+ (NSString *)imageBase64WithDataURL:(UIImage *)image  {      NSData *imageData =nil;      NSString *mimeType =nil;            //图片要压缩的比例,此处100根据需求,自行设置      CGFloat x =100 / image.size.he

2017-11-22 15:09:35 443

原创 点击空白回收键盘

-(void)viewDidLoad{UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(fingerTapped:)];[self.view addGestureRecognizer:singleTap];}-(void)fingerTap

2017-11-16 09:43:57 192

原创 压缩图片大小尺寸

+(UIImage *)imageWithImageSimple:(UIImage *)image scaledToSize:(CGSize)newSize{    UIGraphicsBeginImageContext(newSize);    [image drawInRect:CGRectMake(0,0, newSize.width, newSize.height)];

2014-06-06 15:28:23 329

转载 UILabel行间距控制

UILabel *label = [[UILabel alloc] initWithFrame:labelFrame];        [label setBackgroundColor:[UIColor clearColor]];        [label setTextColor:textColor];        [label setNumberOfLines:0];

2014-06-05 15:15:03 306

转载 CoreData 基本方法调用

http://www.cppblog.com/ipzyh/articles/CoreData.html

2014-04-12 17:19:23 196

原创 CoreData 数据管理

NSManagerContext  上下文本对象在从数据库h

2014-04-12 11:11:21 214

讯飞语音识别 HTML5

讯飞语音识别 HTML5

2017-01-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除