- 博客(9)
- 收藏
- 关注
原创 利用Hopper Disassembler和IDA Pro修改函数返回值
先说一下背景。。本人用的Hopper Disassembler v4的Demo版本,因此只能使用Modify -> Assemble Instruction功能,但是不能导出二进制文件。但是手上又有IDA Pro的绿色版。。所以只能Hopper改完之后,再通过IDA Pro导出二进制文件。当然大能可以直接用IDA的Patch program来改,但是因为Hopper Disassemble...
2018-12-29 15:44:36
4512
原创 iOS 利用runtime替换系统的NSString stringWithFormat:方法
其实还是建议大家写分类(category),毕竟直接替换系统方法很有可能导致APP在运行过程中出现各种奇奇怪怪的问题,毕竟系统方法不止你自己在调用:+ (void)exchangeNSString { SEL sel1 = @selector(stringWithFormat:); Method a = class_getClassMethod([NSString class],...
2018-12-24 17:06:02
2339
原创 iOS 判断iPhone和iPad的NavigationBar高度
+ (BOOL)isIPad { if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { return YES; } return NO;}+ (CGFloat)navigationHeight { if ([self isIPad]) {...
2018-12-20 16:03:17
3828
原创 npm git clone 的两种格式
//根据版本号clonenpm install git+ssh://git@github.com/visionmedia/express.git#1.2.0npm install git+https://github.com/visionmedia/express.git#1.3.0//or 根据分支clonenpm install git+ssh://git@github.com/vis...
2018-12-18 20:49:35
3573
1
原创 iOS NSData转float,Data转Float,Byte Array转float
直接上代码:OC版本的: Byte byte[] = {0x47,0x33,0x18,0x00};//{0x00,0x18,0x33,0x47}; NSData * data = [NSData dataWithBytes:byte length:sizeof(byte)]; int32_t bytes; [data getBytes:&byte...
2018-12-07 16:58:54
3186
原创 Mac 检查jpg是否为渐进式图片
Mac检查图片是否是渐进式图片我用的是imagemagick,先安装了homebrew$ brew install imagemagick输入要检查图片$ identify -verbose file.jpg | grep Interlace如果返回 Interlace: JPEG 图片是渐进式如果返回 Interlace: None 图片不是渐进式...
2018-12-06 18:05:43
2003
1
原创 Hexo Yelee主题侧边栏社交图标中的github图标不显示
不显示的的原因是原文件中GitHub图标的地址已经失效了,原来的代码是这么写的: .GitHub background url(//cdn.bootcss.com/logos/0.2.0/github-octocat.svg) no-repeat white background-size 90% background-position 50...
2018-12-05 11:15:21
2630
10
翻译 iOS 将.caf文件转换为.aac文件
How to convert .caf audio files into .aac?step 1) I have downloaded sample TPAACAudioConverter project from https://github.com/michaeltyson/TPAACAudioConverter从github下载这个项目。step 2)AACConverterViewC...
2018-12-04 15:18:59
2123
1
翻译 OSStatus error 1718449215
1718449215 is the decimal representation of the four character code for the kAudioFormatUnsupportedDataFormatError error.In general you can use something like this to get more information from the er...
2018-12-04 15:10:08
2582
空空如也
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝