在路上……
zhuxiangyan · 共 129 篇文章
[置顶] 郁闷的svn问题
org.tigris.subversion.javahl.ClientException:Path is not a working copy directory svn:"d:\test" is not a working copy 提示比较明显了,不是工作拷贝,你应该把库中的内容checkout到一个新的目录
2012-03-08 17:54 · 评论(0)
手动解crash!
1:检查.dysm .app .crash文件的一致性。 利用系统自带的dwarfdump --uuid xx.dysm获取符号表的uuid。 特别注意.crash的uuid是Binary Images的第一行,而不是cras文件的第一行的Incident Identifier. 2: 需要找到xcode自带的symbolicatecrash文件 然后执行symbolicatecrash .crash .dysm > result.crash A:注意最后是箭头 B: find /Applications/Xcode.app/ -name symbolicatecrash /Applicat…
2016-12-21 23:17 · crash · 评论(0)
获取IPHONE手机UUID
每个iPhone或iPod Touch都有一个唯一的设备标识符(UUID),由40个字符或数字构成。类似于,1efb55db0b545766ed940db8c32a65b37cc06ae5。 但在xcode8之后通过window-organizer 无法获取到UUID了。 itunes也找不到,我是通过Itools -- 更多 获取到UUID的。如图:
2016-12-21 23:05 · iphone · 评论(0)
Spotlight快捷键
4个基本Spotlight快捷键: -打开Spotlight菜单:Control+空格 -在Finder中打开Spotlight:Command+Option+空格 -清空Spotlight搜索框:ESC -关闭Spotlight菜单:ESC按两次 7个Spotlight使用&导航快捷键: -打开第一个搜索项目:回车 -在搜索结果中导航移动:上箭头、下箭头 -在Finder中国定位第一个搜索项目:Command+回车 (其他项可以将光标移过去再这么按) -查看搜索项的信息:Command+I -显示搜索结果的快速查看预览:Command,或者将鼠标光标游移到相应的搜索结果上(10.7以上) …
2016-01-27 10:49 · 评论(0)
私有api检测
可以搜索performselector的参数,看有没有拼出来的selector 另外搜索extern C的函数声明,看是否有函数没有定义但是有调用
2015-10-29 16:56 · oc · 评论(0)
高斯模糊
- (UIImage *)blurImageFromBackGround { //parentView是要生成模糊背景的view UIGraphicsBeginImageContext(self.parentView.bounds.size); [self.parentView.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage * img = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); CIContext *cont…
2015-02-11 14:52 · oc · 评论(0)
@interface @implementation 变量
现在看的有点混乱。 大概知道 在interface中声明的是实例变量,如果是公共的就可以被外部访问。 那和implementation 中什么的变量区别在哪里呢? 那么变量在什么情况下 声明在 interface 什么情况下声明在implementation 下呢? 谢谢!
2014-04-29 20:20 · oc · 评论(0)
iOS 截屏
+ (UIImage *)getImageOfView:(UIView *)view { UIImage *screenImage; // UIWindow *screenWindow = [[UIApplication sharedApplication] keyWindow]; UIGraphicsBeginImageContextWithOptions(view.bounds.size, NO, 0.0); SEL aSelector = NSSelectorFromString(@"drawViewHierarchyInRect:afterScreenUpdates:"); if (…
2014-04-22 21:47 · oc · 评论(0)
isKindClass isNumberClass
isMemberOfClass 该方法是用来判断是否是该类的实例,父类不参与,与isKindOfClass区别,但是小弟有个疑问,为什么用系统的某些类调用这个方法的时候却不好使? NSMutableArray * mutablearray = [[NSMutableArray alloc] init]; 02. 03. if ([mutablearray isMemberOfClass:[NSMutableArray class]]) { 04. 05. NSLog(@"yes"); 06. 07. } 08. 09. 10. 11. NSArray * array = [[NSArray …
2014-04-17 18:29 · oc · 评论(0)
备忘oc
CFAbsoluteTimeGetCurrent *uin NSInteger 1819045699 1819045699 setNeedsDisplay + (NSInteger)getCurrentVIPLevel { if ([[QZoneUserSetting GetInstance] getQzoneVipLevel] > 0) { return [[QZoneUserSetting GetInstance] getQzoneVipLevel]; } //开通黄钻 level为1初始化为1 if ([[QzYellowDiamondPayManager shareInstance]…
2014-04-16 21:03 · oc · 评论(0)
OC 学习备忘
1:居中布局 label.center = CGPointMake(CGRectGetMidX(window.bounds), CGRectGetMidY(window.bounds)); 2:设备检测 if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); } else { return YES; } 3:UISegmentedCont…
2014-04-06 12:31 · oc · 评论(0)