- 博客(74)
- 问答 (1)
- 收藏
- 关注
原创 svn 命令
1. SVN Checkout svn下载路径 (先cd到路径,提示用户名与密码)2.svn add 文件路径 如图中为上传所有 channels/Persional/Views/ShareChannelCell 的文件包括 .h 与.m文件。3.svn ci -m "注释" 提交commit 4.svn up 更新代码 update
2017-11-18 21:41:34
262
原创 优化switch 分支
三种方式总结1:传统的用法优点:简单易读,效率高缺点:当量很多的时候会造成方法很长,不易维护,可能修改其中某一个case会引起未知的错误2:委托优点:使用委托将公有的进行提取,减少代码量缺点:加入字典后每次添加都需要在字典后手动添加一个子项。总是觉得别扭,效率稍微差点
2017-06-22 10:50:39
548
转载 UIBezierPath详解
UIBezierPath详解在学习UIBezierPath时command进源文件中一次依次解读属性和方法。原文链接 点击打开链接http://write.blog.youkuaiyun.com/postedit。
2017-06-20 16:12:39
255
原创 /Debug-iphonesimulator/✖️✖️.build/Script-817CB3AD1B3BC68D0004AFEA.sh: line 2: ./.../.framework
删除即可
2017-06-19 19:17:49
834
原创 'objc_unretainedObject' is unavailable:use a (__bridge id) cast instead
d
2017-06-19 19:04:36
1202
原创 iOS frame与bounds的区别
开发中经常遇到设置UI控件的位置等等约束的问题,实际使用的时候一般不做特殊处理不容易遇到frame 与 bounds 需要严格区分的时候。那么两者到底有什么区别呢:网上有很多描述的点击打开链接 。总的来说frame是相对于父控件的,而bounds 相对于自身控件。两者在设置了setbounds之后就会不一样,另外比如说控件旋转之后frame就与bounds不一样了。frame发生变化,
2017-06-08 16:27:20
297
原创 开发的细碎点
1.if (![selfgestureRecognizers]) { self.userInteractionEnabled =YES; UITapGestureRecognizer *tap = [[UITapGestureRecognizeralloc] initWithTarget:selfaction:@selector(tap)
2017-04-15 17:37:30
262
原创 the left operand of * is a garbage value
使用xCode analyze 时出现the left operand of ** is a garbage value查看代码实现:这里出现内存泄露的警告原因是 float nsinscore 未赋值 当不满足if 条件时就会出现问题。
2017-03-03 09:48:19
2786
原创 error: linker command failed with exit code 1 (use -v to see invocation)
.a文件没添加上去,用svn管理代码得话是不会提交.a文件的,检查下.a文件是不是因为svn的问题没下载下来
2017-02-10 18:30:54
437
原创 ARC Semantic issue:No visiable @interface for xxx declares the selector yyy 与arc semantic issue
今天在使用cocoapods 的时候出现 使用更新了pod 库之后开始出现报错。1、arc semantic issueARC Semantic issue:No visiable @interface for xxx declares the selector yyy如图是sdwebimage 出现的报错。接着发现在pod 的时候出现这种原因是升级了
2017-02-10 15:26:36
2932
原创 ld: 'XXX' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_B
ld: 'XXX' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architec
2017-02-06 17:38:36
698
原创 apns返回的handShake_failure错误
1.这两天App友盟推送忽然不能用,查看之下报了个这样的错 “apns返回的handShake_failure错误”,一般这种情况是推送证书过期,只需要重新导入一下。2.上线情况就不说了,网上一堆这里记录下自己的处理流程因为之前没做过推送,记录一下。3.登录友盟,进入推送4.查看应用的证书信息。5.上传的证书有两种(开发模式,生产模式)6.然后登
2017-01-24 18:16:05
3028
原创 redirect_uri_mismatch
redirect_uri_mismatch原因是我在新浪开发平台新建APP后,没有修改回调url,回调url要和APP中设置的回调url一致;
2017-01-18 15:14:29
4464
原创 iOS 应用进入info 时xcode 闪退
应用在点击info 时出现xcode 闪退,之后发现是info.plist 里面的属性设置不对,设置白名单 的数组放错位置
2017-01-18 11:03:28
720
原创 library not found for -lWeChatSDK
library not found for -lWeChatSDK1.工程文件上传到svn中,.a文件会自动屏蔽(应该叫屏蔽,反正就是上传不上去)用Cornerstone工具,解决这个问题1.打开Cornerstone左上角,点Cornerstone->Preferences->Subversion2.Global lgnores下面有一个Use def
2017-01-18 10:06:49
866
原创 - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds;
-- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds{return NO;}判定为布局需要被无效化并重新计算的时候,布局对象会被询问以提供新的布局。 2.- (void)prepareLayout 系统在准备对item进行布局前会调用这个方法,我们重写这个方法之后可以在方法里面预先设置好需要
2017-01-16 13:53:17
4642
原创 AQDefaultDevice (173): skipping input stream
Xcode8 出现问题:AQDefaultDevice (173): skipping input stream
2017-01-11 13:36:14
5135
原创 masonry Unable to simultaneously satisfy constraints. Probably at least one of the c
Unable to simultaneously satisfy constraints. Probably at least one of the 在使用masonry 进行布局的时候出现了类似的问题之后找了半天,[_sliteViewmas_makeConstraints:^(MASConstraintMaker *make) { make.size.
2017-01-09 11:38:40
6666
原创 endRefreshingWithNoMoreData
1.[_myCollection.mj_footerendRefreshingWithNoMoreData];[self.mainViewreloadItemsAtIndexPaths:@[[NSIndexPathindexPathForRow:4inSection:0]]];
2016-12-26 09:59:35
4028
原创 - (void)scrollToItemAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UICollectionViewScrollPos
- (void)scrollToItemAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UICollectionViewScrollPosition)scrollPosition animated:(BOOL)animated;一个UICollectionView有好多个cell,滑动一下,谁也不知道会停留在哪个cell,滑
2016-12-08 14:37:47
2315
原创 苹果系统升级是时出现应用程序副本不能验证,它在下载过程中可能已遭篡改或损坏。
在终端中修改时间:sudo date 如果用上面的办法修改后还是不行,那么输入下面的代码试试date 062614102014.3006是月,26是日,14是时,10是分,2014是年,30是秒注意:参考上面的代码,修改为现在的时间,误差不超过1分钟将时间改为以前的
2016-09-12 17:21:07
7088
原创 iOS 手势笔记
iOS六种手势: 轻击手势(TapGestureRecognizer), 轻扫手势(SwipeGestureRecognizer), 长按手势(LongPressGestureRecognizer), 拖动手势(PanGestureRecognizer), 捏合手势(PinchGestureRecogni
2016-08-19 09:51:20
218
原创 UIView的UIViewAutoresizingMark
typedef NS_OPTIONS(NSUInteger, UIViewAutoresizing) { UIViewAutoresizingNone = 0, UIViewAutoresizingFlexibleLeftMargin = 1 UIViewAutoresizingFlexibleWidth
2016-08-11 17:32:36
246
原创 Assertion failure in -[UITableView _dequeueReusableViewOfType:withIdentifier:], /BuildRoot/Library/C
之前遇到过这个问题觉得蛮有趣:Assertion failure in -[UITableView _dequeueReusableViewOfType:withIdentifier:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.30.14/UITableView.m:6530
2016-08-08 15:56:57
3927
原创 UIWebView随笔
1. 程序无法加载请求2.为了让浏览器支持https,NSAppTransportSecurity为Dictionary,NSAllowsArbitraryLoads为Boolean 加上两个字段
2016-07-28 17:06:26
310
原创 Xcode工程 Implicit conversion loses integer precision: 'NSInteger' (aka 'long') to 'int32类似的警
-fno-objc-arc -Wno-shorten-64-to-32在xcode 项目中出现了类似的报错,在项目中需要兼容MRC,解决方案就是直接在工程配置中找到当前文件,贴上-fno-objc-arc -Wno-shorten-64-to-32 然后command+B 搞定了
2016-07-22 16:08:09
3036
空空如也
php问题求大神支招,急用
2015-05-26
TA创建的收藏夹 TA关注的收藏夹
TA关注的人