上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: class func stringToArray(input:NSString) ->NSArray { let arrInput = (0..<input.length).map({ Character(UnicodeScalar(input.character(at: $0))!) }) ret 阅读全文
posted @ 2018-11-02 17:10 仲长可倾 阅读(3578) 评论(0) 推荐(0)
摘要: 我在Github新建一个仓库,写了License,然后把本地一个写了很久仓库上传。 先pull,因为两个仓库不同,发现refusing to merge unrelated histories,无法pull 因为他们是两个不同的项目,要把两个不同的项目合并,git需要添加一句代码,在git pull 阅读全文
posted @ 2018-05-24 18:56 仲长可倾 阅读(124) 评论(0) 推荐(0)
摘要: 解决MAC下MySQL忘记初始密码的方法分享给大家,供大家参考,具体内容如下 第一步: 点击系统偏好设置->最下边点MySQL,在弹出页面中,关闭服务 第二步:进入终端输入:cd /usr/local/mysql/bin/回车后 登录管理员权限 sudo su回车后输入以下命令来禁止mysql验证功 阅读全文
posted @ 2018-02-27 17:59 仲长可倾 阅读(231) 评论(0) 推荐(0)
摘要: 我们写跑马灯一般都是用js控制定时器不断循环产生,但是定时器消耗比较大,特别是程序中很多用到定时器的时候,感觉有的时候比较卡。但是css样式一般不会。这里主要的思路就是用css代替js定时器实现一个简单的跑马灯。 1、基本思路 这次demo主要是通过css中的animation动画实现,借助tran 阅读全文
posted @ 2018-01-24 16:12 仲长可倾 阅读(445) 评论(0) 推荐(0)
摘要: //获取当前系统时间的时间戳 #pragma mark - 获取当前时间的 时间戳 +(NSInteger)getNowTimestamp { NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDat 阅读全文
posted @ 2017-11-08 10:39 仲长可倾 阅读(2997) 评论(0) 推荐(0)
摘要: 1.类QNNPing.m 第93行到103行,check_compile_time调用, error: expected parameter declarator check_compile_time(sizeof(IPHeader) == 20); .... .... 可能解决方法:check_c 阅读全文
posted @ 2017-09-30 11:45 仲长可倾 阅读(3706) 评论(0) 推荐(0)
摘要: 修改字体和颜色需要用到kvc: yourTextField.placeholder = @"username is in here!"; [yourTextField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textCol 阅读全文
posted @ 2017-06-27 17:00 仲长可倾 阅读(481) 评论(0) 推荐(0)
摘要: 显示:defaults write com.apple.finder AppleShowAllFiles -bool true隐藏:defaults write com.apple.finder AppleShowAllFiles -bool false 阅读全文
posted @ 2017-06-03 09:47 仲长可倾 阅读(378) 评论(0) 推荐(0)
摘要: #import <sys/socket.h> #import <sys/sockio.h> #import <sys/ioctl.h> #import <net/if.h> #import <arpa/inet.h> +(NSString *)getDeviceIPAddresses { int s 阅读全文
posted @ 2017-05-11 18:07 仲长可倾 阅读(6025) 评论(2) 推荐(0)
摘要: 1.设备版本过低 对于游戏设备的版本要求当然也不是很低哦。玩家可以将自己的设备版本与游戏要求进行比对,如果发现手机版本过低需要及时更新,否则运行游戏时会比较容易出现游戏闪退或者黑屏的现象。 2.网络不稳定 对于这一类需要联网的手机游戏来说,想要顺畅地游戏必须要保证无线网络正常并且信号稳定,反之如果信 阅读全文
posted @ 2017-05-04 11:03 仲长可倾 阅读(3332) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页