随笔分类 -  错误解决方案

xcode 打开工程就崩溃意外退出
摘要:第一种方案: 然后用文本编辑器打开project.pbxproj文件,看是否有svn冲突,可以搜索<<<<< 等查看 如果不是svn文件,工程其他人能打开,就自己的打不开,可以使用第二种方案 1.第一步 找到工程文件 第二步,找到project.xcworkspace文件 第三步: 删除xcuser 阅读全文
posted @ 2017-10-16 16:31 i兮兮
invalid nib registered for identifier(重用符)
摘要:通过xib创建cell的时候 一定要注意!!! 这个错误是在这个xib中在View同一层级出现了其他的控件,检查一下xib中左边的层级关系,让cell的view是唯一的控件就可以了,否则一执行 就会提示 "* Terminating app due to uncaught exception 'NS 阅读全文
posted @ 2017-09-21 15:32 i兮兮 阅读(590) 评论(0) 推荐(0)
去掉navbar或者tabbar的预留间距
摘要:原因就是 用sb或者xib的时候 如果用继承scrollview的视图,并且视图的上面或者下面是navbar或者tabbar的时候就会自动多出64和49来显示navbar和tabbar 在视图控制器里加上 self.automaticallyAdjustsScrollViewInsets = NO; 阅读全文
posted @ 2016-04-19 09:20 i兮兮 阅读(532) 评论(0) 推荐(0)
iOS UIScrollview 和侧滑手势冲突解决方法
摘要:在自定义的uiscroview里添加方法。左边侧滑:- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer{CGPoint velocity = [(UIPanGestureRecognizer *)... 阅读全文
posted @ 2016-01-19 16:28 i兮兮 阅读(3239) 评论(0) 推荐(0)
错误代码: Could not load the "XXX.png" image referenced from a nib in the bundle with identifier "XXX"
摘要:出现该问题的原因是没有将相应地图片文件copy到bundle里,解决办法很简单,点击项目名称,选择Build Phase,找到Copy Bundle Resources,点击“+”,将相应的资源文件添加即可。 阅读全文
posted @ 2016-01-18 08:48 i兮兮 阅读(1090) 评论(0) 推荐(0)
错误代码:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=armv7 armv7s).
摘要:错误代码:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=armv7 armv7s). 阅读全文
posted @ 2016-01-15 09:08 i兮兮 阅读(602) 评论(0) 推荐(0)
错误代码:Your build settings specify a provisioning profile with the UUID “”, however, no such provisioning profile was found
摘要:在Archive项目时,出现了“Your build settings specify a provisioning profile with the UUID “”, however, no such provisioning profile was found”的出错。一直提示指定UUID的pr... 阅读全文
posted @ 2016-01-15 09:06 i兮兮 阅读(241) 评论(0) 推荐(0)
Xcode7 使用NSURLSession发送HTTP请求的问题
摘要:错误描述:App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your... 阅读全文
posted @ 2015-12-29 08:34 i兮兮 阅读(122) 评论(0) 推荐(0)