- 博客(18)
- 收藏
- 关注
原创 ios设置状态栏字体颜色
ios设置状态栏字体颜色1.全局只有一个颜色View controller-based status bar appearance = NO;2.需要页面有白色和黑色View controller-based status bar appearance = YES;页面里设置- (UIStatusBarStyle)preferredStatusBarStyle { re...
2019-02-25 14:21:39 417
原创 mac使用autojump
mac使用autojump1. 安装zsh:sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"2. 将zsh设置成默认的shell:chsh -s /bin/zsh (重启shell)3. echo $SHELL可以查看用的哪个shell(bash or zsh...
2019-02-25 09:19:08 1444
原创 ios常驻进程
ios常驻进程/** 应用进入后台, 保证进程不被系统kill */- (void)applicationDidEnterBackground:(UIApplication *)application { UIApplication *app = [UIApplication sharedApplication]; __block UIBackgroundTaskIdenti...
2019-02-19 14:48:22 558
原创 使用fastlane重签名
使用fastlane重签名fastlane sigh resign xxx.ipa --signing_identity "cer" -p "xxx.mobileprovision";
2019-02-16 17:12:01 3376
原创 no identity found
no identity found# 查看可用的证书security find-identity -p codesigning
2019-02-16 10:37:55 1723
原创 npm清除未被使用的模块命令
npm清除未被使用的模块命令npm prune发现没生效npm WARN components No descriptionnpm WARN components No repository field.npm WARN components No README datanpm WARN components No license field.up to date in 1....
2019-02-15 19:40:08 2038
原创 vue 使用html2canvas保存图片
vue 使用html2canvas保存图片ref="imageWrapper"import html2canvas from 'html2canvas';html2canvas(this.$refs.imageWrapper,{ backgroundColor: null}).then((canvas) => { let dataURL = canvas.toDataURL(...
2019-02-15 19:17:12 1447
原创 java int to string
java int to stringint i = 1234;String str = Integer.toString(i);
2019-02-15 17:29:26 230
原创 not all arguments converted during string formatting
not all arguments converted during string formatting很低级的错误.字符拼接少了一个%s
2019-02-15 15:29:35 325
原创 ios 移除特定vc
ios 移除特定vc- (void)removeBeforeVC { NSMutableArray *mutArr = [[NSMutableArray alloc] initWithArray:self.navigationController.viewControllers]; for (UIViewController *VC in mutArr) { if...
2019-02-13 14:15:13 1205
原创 js 生成uuid
js 生成uuidguid() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); return v...
2019-02-12 12:50:24 1214
原创 js生成随机数(范围内)
js生成随机数(范围内)生成1 - 10var num = Math.floor(Math.random()*10+1);
2019-02-12 11:55:17 230
原创 python中urllib.quote出现KeyError
python中urllib.quote出现KeyError因为从数据库里取出来的字符串是unicode. 但是quote_plus函数只接受ascii码, 所以需要先把字符串encode一下.urllib.quote(s.encode('utf8'))...
2019-02-12 11:10:23 675
原创 python urlencode
python urlencode#coding=utf-8import urllib, syss = '你好's_encode = urllib.quote(s.decode(sys.stdin.encoding).encode('utf8'))print s_encode
2019-02-12 10:55:49 631
原创 mysql 修改字段名
mysql 修改字段名alter table table1 change column1 colum2 decimal(20, 10) not null default 0.0000000000;
2019-02-12 09:42:50 5078
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人