上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: #import NSArray *ifs = (__bridge_transfer id)CNCopySupportedInterfaces(); NSLog(@"Supported interfaces: %@", ifs); id info = nil; for (NSString *ifnam in ifs) { info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam); NSLog(@"%@ => %@", ifnam, info); 阅读全文
posted @ 2013-09-24 17:48 威尚 阅读(3818) 评论(0) 推荐(0) 编辑
摘要: 很兴奋,我开始了进行JB的开发1、杀死当前的APP [(SpringBoard *)[UIApplicationsharedApplication] _killThermallyActiveApplication];2、系统的截屏“咔嚓”声路径/System/Library/Audio/UISounds/photoShutter.caf3、系统设置中添加配置/Library/PreferenceLoader/Preferences/app.yrwang.com.plist 阅读全文
posted @ 2013-07-22 14:57 威尚 阅读(286) 评论(0) 推荐(0) 编辑
摘要: CodeSign error: code signing is required for product type 'Dynamic Library' in SDK 'iOS 6.1'如何解决? 阅读全文
posted @ 2013-07-02 11:50 威尚 阅读(561) 评论(2) 推荐(0) 编辑
摘要: CFStringRef FileMD5HashCreateWithPath(CFStringRef filePath, size_t chunkSizeForReadingData) { // Declare needed variables CFStringRef result = NULL; CFReadStreamRef readStream = NULL; // Get the file URL CFURLRef fileURL = CFURLCreateWi... 阅读全文
posted @ 2013-06-28 15:10 威尚 阅读(3263) 评论(1) 推荐(0) 编辑
摘要: 我们都知道在windows下可以通过API轻松的hook很多消息,IOS也可以实现hook的功能。建立一个TestHookObject类//// TestHookObject.m// TestEntrance//// Created by 张 卫平 on 13-6-27.// Copyright (c) 2013年 张 卫平. All rights reserved.//#import "TestHookObject.h"#import #import @implementation TestHookObject// this method will just excute 阅读全文
posted @ 2013-06-27 15:04 威尚 阅读(4960) 评论(0) 推荐(1) 编辑
摘要: 1、更换壁纸:把图片写到这个目录,/var/mobile/Library/LockBackground.jpg,然后kill the Springboard.2、把程序添加进通知中心(iOS5以上),把.bundle文件放入System/Library/WeeAppPlugins目录下。进入设置-通知中心,就有此程序了。3、越狱开发的人知道,theopendev开发的时候,经常碰到这个问题:dpkg: error: dpkg status database is locked by another process 解决办法:sudo rm -rf /var/lib/dpkg/lock4... 阅读全文
posted @ 2013-06-19 14:45 威尚 阅读(614) 评论(1) 推荐(0) 编辑
摘要: 1、越狱在线下载安装,需安装appsync插件2、deb打包使用finker,deb安装包也就是DEBIANLibrary/LaunchDaemons LaunchDaemons是用户未登陆前就启动的服务(守护进程)。Library/MobileSubstrate Mobile Substrate是一个公共库,可以用来动态替换内存中的代码、数据等。可以把它理解成是防止系统崩溃、避免白苹果的程序。它是iPhone常用到的一个基本程序!很多系统级应用都有关联到该应用!3、deb安装ipa,需要自己写IPAIPA和installipa。4、bash脚本:用户deb在安装前后和卸载前后的操作命令。 阅读全文
posted @ 2013-04-26 11:31 威尚 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 如果要统计ios开发代码,包括头文件的,终端命令进入项目目录下,命令如下find.-name"*.m"-or-name"*.h"-or-name"*.xib"-or-name"*.c"|xargswc-l列出每个文件的行数find.-name"*.m"-or-name"*.h"-or-name"*.xib"-or-name"*.c"|xargsgrep-v"^$"|wc-l列出代码行数总和grep -v " 阅读全文
posted @ 2013-02-18 09:21 威尚 阅读(28735) 评论(0) 推荐(1) 编辑
摘要: http://www.time.ac.cn/timeflash.asp?user=flash 阅读全文
posted @ 2013-01-10 22:00 威尚 阅读(251) 评论(0) 推荐(0) 编辑
摘要: int iVisen = 1000;- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //int代码块 int mutl =7; int (^visenBlock)(int) = ^(int num){return num *mutl;}; NSLog(@"%d",visenBlock(4)); //nsstring代码块 void (^... 阅读全文
posted @ 2012-12-13 14:59 威尚 阅读(970) 评论(1) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页