IOS开发
Learner-forever
保持学习,记录每一步的前进。
展开
-
mac 软件分享平台
http://xclient.info/s/c/games/2/?t=c0321e621d18b21e2ba8791a627b3f9bc45dd6a9原创 2018-07-30 15:35:39 · 1789 阅读 · 0 评论 -
Xcode代码提示联想功能失效,按command键点不进去类库
首先你需要显示隐藏文件。找到本地DerivedData,找到“资源库”文件夹。--->Deceloper----->Xcode----->DerivedData将对应的和项目相应的文件夹的内容全部删除。(在终端里输入下面命令即可让它们显示出来。 defaults write com.apple.finder AppleShowAllFiles -bool true 如果想恢原创 2018-01-08 11:00:04 · 1456 阅读 · 0 评论 -
我要死磕横竖屏
关于shouldAutorotate不执行的问题http://blog.csdn.net/zhaotao0617/article/details/51131038关于iOS横竖屏适配http://www.jianshu.com/p/1993144ea35e转载 2017-12-15 17:35:54 · 153 阅读 · 0 评论 -
pod install Abort trap: 6
转载链接:http://blog.csdn.net/skylearn/article/details/50889430 作者:skylearn升级OS X EICapiton之后,发现CocoaPods的pod无效了,运行pod后显示:"pod: command not found"的错误。 解决步骤:1.为了安全起见,执行命令"sudogem uninsta转载 2017-11-23 13:56:56 · 571 阅读 · 0 评论 -
查看xcode证书路径
~/Library/MobileDevice/Provisioning Profiles原创 2017-11-23 09:10:57 · 4152 阅读 · 0 评论 -
气天——测预
国内版http://www.sojson.com/open/api/weather/json.shtml?city=北京 https://api.thinkpage.cn/v3/weather/daily.json?key=osoydf7ademn8ybv&location=西安&language=zh-Hans&start=0&days=3国际版h原创 2017-12-01 11:52:18 · 373 阅读 · 0 评论 -
git 简单命令记录
git clone 地址git commit -""git add.git pullgit push原创 2017-10-09 09:27:49 · 147 阅读 · 0 评论 -
iPhoneX 适配
https://developer.apple.com/ios/human-interface-guidelines/visual-design/adaptivity-and-layout/https://developer.apple.com/documentation/uikit/uiview/2891102-safearealayoutguide有个名词叫做安全区域“safe a原创 2017-09-21 17:15:42 · 298 阅读 · 0 评论 -
Merge branch 'master' of https://git.coding.net/app-develop/iOS_xxxx Please enter a commit
Merge branch 'master' of https://git.coding.net/app-develop/iOS_XinShengGuoJi Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into原创 2017-09-04 10:41:59 · 11471 阅读 · 1 评论 -
删除xcode PP文件
~/Library/MobileDevice/Provisioning Profiles原创 2018-04-11 12:01:49 · 2372 阅读 · 0 评论 -
廖雪峰的git讲解
https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000转载 2018-04-13 11:24:47 · 223 阅读 · 0 评论 -
强行更改MAC密码
1.开机时按住command+R2.此时进入进度条页面3.进度条加载完毕进入恢复界面4.点击右上角的“实用工具” -> “终端”5.终端输入“resetpassword”回车6.弹出重置密码界面7.设密,重启即可。...原创 2018-05-02 15:23:45 · 4639 阅读 · 0 评论 -
获取image名字
https://blog.csdn.net/qq_27074387/article/details/51863219转载 2018-07-18 11:56:24 · 2260 阅读 · 0 评论 -
UIScrollView 向上偏移
https://blog.csdn.net/clj_is_queen1/article/details/77773917转载 2018-07-18 10:07:16 · 1507 阅读 · 0 评论 -
pushViewController自定义动画
pushViewController自定义动画 1 2 3 4 5 6 7 8 9 10 CATransition *transition = [CATransition animation]; transition.duration = 1.0f; transition...转载 2018-07-18 09:30:38 · 930 阅读 · 0 评论 -
xcode 工程降级
http://www.cnblogs.com/8335IT/p/9285913.html转载 2018-07-16 15:05:38 · 1181 阅读 · 0 评论 -
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are o
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is downERROR: While executing gem ... (Errno::EPERM) Operation not permit...转载 2018-05-21 17:06:20 · 3830 阅读 · 0 评论 -
史蒂芬周博客打不开怎么办?
http://www.sdifen.com/sourcetree231.html单击即可原创 2018-05-04 10:15:27 · 19028 阅读 · 0 评论 -
MacOS快速新建txt文本
Automator工具介绍此文章为转载内容,原地址为: https://blog.csdn.net/coder_zzy/article/details/66477485 首先说明一下这是macOS系统自带的一款功能强大的程序,不同版本系统该程序所在的位置可能不同,仅以目前较新的macOS Sierra为例: 该程序就在Finder中应用程序的根目录下: 其他版本有的在应用程...转载 2018-05-03 11:51:41 · 2392 阅读 · 0 评论 -
一个强大的轮播
https://github.com/12207480/TYCyclePagerView希望让您满意原创 2018-05-03 08:59:07 · 757 阅读 · 0 评论 -
storyboard添加导航控制器
原创 2017-07-24 10:19:57 · 1277 阅读 · 0 评论 -
TCP/IP 概述
1.TCP/IP协议,一切网络协议的总称。四层结构由底往上:链路层、网络层、传输层、应用层 1.应用层典型协议包含:HTTP FTP等,传输各种形态的数据 2.传输层层典型协议包含:(传输控制协议)TCP、(用户数据报协议)UDP,为应用层实体提供端到端的通信 功能。 TCP提供一种可靠的、面向连接的数据传输服务。原创 2017-08-07 17:06:46 · 199 阅读 · 0 评论 -
cocopods后 的使用 给用过一次的人看
1.在文件夹上打开终端2.vim Podfile3.输入“i”4.输入(用来编辑podfile文档)platform :ios,'8.0'target "testpods"doend5.点击“esc”输入“:”6.pod install原创 2016-11-10 14:14:41 · 205 阅读 · 0 评论 -
单元测试
直接上代码 单元测试 代码覆盖率 性能测试 异步测试原创 2017-05-04 10:45:45 · 135 阅读 · 0 评论 -
使用mac电脑预览功能修改图片尺寸以及裁剪
想必很多人拿到美工不专业的图片很不爽,其实我们mac电脑的图片预览功能有点厉害(很多开发2年到3年的人都不知道)1.双击打开图片2.操作步骤二后的图片3.直接使用鼠标任意裁剪吧原创 2017-05-11 13:46:36 · 14853 阅读 · 0 评论 -
快速获取苹果手机UDID
UDID iOS原创 2017-05-02 18:27:13 · 850 阅读 · 0 评论 -
强势删除GIT中的 .DS_Store
删除项目中的所有.DS_Store。这会跳过不在项目中的 .DS_Store1.find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch将 .DS_Store 加入到 .gitignore2.echo .DS_Store >> ~/.gitignore更新项目3.gi原创 2017-05-10 17:53:11 · 844 阅读 · 0 评论 -
学习计划
以后就当写日记了1.xib2.runtime的映射机制3.runloop的nstimer4.延展5.工厂模式6.推送7.类目8.storyboard9.封装思想10.FMDB SQLite11.更新简历12.k线图总结13.xib框架 纯代码 storyboard框架 完成后上传到gitHub 14.整理在当前原创 2017-03-21 15:25:02 · 162 阅读 · 0 评论 -
static oc、ios 一个例子让你明白
#import // 定义静态变量static int gInitCount ; @interface Person : NSObject -(id) init ; // 获得初始化数量+(int) getInitCount ; @end // Person 类的实现部分#import "Person.h" @impl原创 2016-11-10 16:59:23 · 595 阅读 · 0 评论 -
计算字符串的高度
+ (CGSize)getStringSizeWithString:(NSString *)string textViewWidth:(float)width attributes:(NSDictionary *)dic{ return [stringboundingRectWithSize:CGSizeMake(width,MAXFLOAT)原创 2016-09-09 17:22:37 · 174 阅读 · 0 评论 -
webSocket对比轮询、长轮询、流
(此文为摘抄,现出处不知。如有异议请及时联系QQ:376441159)需要iOS WebSocketDemo 请到GitHub上搜索SocketRocket 地址:https://github.com/facebook/SocketRocket/issuesHTML5 拥有许多引人注目的新特性,这其中有“Web 的 TCP ”之称的 WebSocket 格外吸引开发人员的注意。转载 2017-05-16 09:17:29 · 6987 阅读 · 0 评论 -
touchesBegan: withEvent: 不执行/完美收起键盘
eg:写一个category类目 UIScrollView + Event- (void)touchesBegan:(NSSetUITouch *> *)touches withEvent:(UIEvent *)event{ [supertouchesBegan:touches withEvent:event]; [[[selfnext原创 2017-05-17 11:01:13 · 1943 阅读 · 0 评论 -
iOS 通知 遇到的坑
文采不好 绵薄之力昨晚自测ok打包给测试,瞬间被打下来。完全懵逼我们测试拿的机型是5c,一点击就闪退。内心十分纳闷,两台ipone 6s 模拟器都已测试ok为什么会崩溃呢?根据系统返回的提示,直接崩到到通知上。我一再确定通知写的没问题。这是错误日志: [ UIWindow WebSocketType10Action]: unrecognized selector sen原创 2017-05-18 11:04:02 · 233 阅读 · 0 评论 -
ImageView上的Button无法响应
ImageView.userInteractionEnabled =YES;原创 2017-08-07 17:05:02 · 266 阅读 · 0 评论 -
storyboard Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
对于不熟练的朋友,不小心绝壁是要躺上一次的。深恶痛绝请仔细辨认绿线处自己是否搞错了原创 2017-07-31 10:31:13 · 237 阅读 · 0 评论 -
mac 终端终止指令
ctrl-c 结束进程原创 2017-07-31 10:22:30 · 86618 阅读 · 13 评论 -
拦截烦人的广告
补充高级用法:如何屏蔽 百度搜索热点如果你安装了ABP那么点击如图所示,选择“设置”->“高级”->“我的过虑列表”->粘贴下面黑色框的代码。此时你刷新百度,即可看到效果。如果你还没有安装此扩展程序那么请您往下面看,有我提供的插件资料地址。www.baidu.com##div[tpl="right_toplist1"]www.baidu.com##div[t...原创 2017-06-09 15:10:21 · 370 阅读 · 0 评论 -
webView不能跳转App Store
以后尽量使用真机测试,一切以真机为主这是个大写的坑,由于没带真机我一直使用模拟器测试。发现无论如何我就是无法到App Store。整了一下午,各种排查问题,各种怀疑人生。今早睡醒想着那真机测下。我的天,成功了!!!真是搞的蛋疼原创 2017-06-06 15:22:42 · 597 阅读 · 0 评论 -
ios 下载的证书全为无效的怎么办?
apple worldwide developer relations Certificater(根证书)如果你的这个证书没有或者失效都会导致所有的证书为无效。点击下载此文件,双击安装到钥匙串(钥匙串要为解锁)https://developer.apple.com/certificationauthority/AppleWWDRCA.cer原创 2017-06-09 11:34:11 · 1405 阅读 · 0 评论 -
ios 只取消导航根控制器的LeftBarButtonItem
一劳永逸只需在BaseViewController(viewController的基类)调用此方法即可//取消导航根控制器的LeftBarButtonItem- (void)cancelNavigationRootVCLeftBarButtonItem{ UITabBarController* tabBarController = (UITabBa原创 2017-05-19 20:52:24 · 870 阅读 · 0 评论