摘要: http://hi.baidu.com/52study/item/82ed1838b96725b7b80c033f?connect=qzone1、C++代码中的回调函数在C++的头文件中声明回调函数,如typedefvoid(*OnCompleteCallback)(constchar*code,boolflag);2、C++代码中的结构体在C++的头文件中声明一个结构体,该结构体中包含回调函数的一个函数声明变量属性。如:123456typedefstructtagStreamInfo{CFDictionaryRefproxy;//可以使用Objective-C的数据类型SInt64fileS 阅读全文
posted @ 2013-03-27 08:47 willbin 阅读(1913) 评论(0) 推荐(0) 编辑
摘要: open -a Safari http://stackoverflow.comI know there are several ways in MacOS to open Safari with a given URL from the command line likeopen -a Safari http://stackoverflow.comOr as an AppleScripttell application "Safari" to open location "http://stackoverflow.com/"in AppleScript, 阅读全文
posted @ 2013-03-19 11:19 willbin 阅读(5278) 评论(0) 推荐(0) 编辑
摘要: 1. 对于不属于admin组的用户,通过sudo visudo设置test ALL=NOPASSWD:ALL2. 对于属于admin组的用户,将admin ALL之前的#注释打开,这样默认的帐号就可以不需要再sudo输入密码了。 # Members of the admin group may gain root privileges admin ALL=(ALL) ALLThat which didn't kill me makes me stronger 阅读全文
posted @ 2013-03-13 17:56 willbin 阅读(162) 评论(0) 推荐(0) 编辑
摘要: http://brandontreb.com/beginning-jailbroken-ios-development-your-first-tweak/AUG 23RD, 2011This is the 3rd installment of my jailbroken iOS development series. If you haven’t already, make sure you read the following tutorials to get up to speed.Beginning Jailbroken iOS Development - Getting The Too 阅读全文
posted @ 2013-03-13 13:45 willbin 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 在iPhone上可以做LauchDaemon,于是上网查找它的教程,不错,顺利搭建,无非是加2个文件,一个plist,加到/Library/LaunchDaemons目录下,作为启动手机后的索引,另一个sh放在自己想放的路径,plist中的路径就是这个sh不过要注意的是,plist需要chown root:wheel,否则无法被系统调用 阅读全文
posted @ 2013-03-13 13:39 willbin 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/diyagoanyhacker/article/details/7872253当我们创建基于mobilesubstrate的应用时,通常都是一些前后台程序,典型的比如苹果皮等,这个需要前台程序法信息到后台进程中,这里有两种方式一种是基于文件的模式也就是在后台程序中设定一个定时器,定时读取用户交互信息的文件,这样实现的通信机制,虽然也解决了问题,但是,缺陷是需要一直跑一个定时器来查询前台是否传递信息过来了还有一种是使用CFMessagePortRef典型的如下模式:#define APP_ID "yohunl.support.mach.port 阅读全文
posted @ 2013-03-13 12:17 willbin 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1: 下载opencv frameworkhttp://sourceforge.net/projects/opencvlibrary/files/opencv-ios/2.4.4/2: 阅读全文
posted @ 2013-03-06 14:01 willbin 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 开发越狱程序:iOSOpenDev. iOSOpenDev是一个XCode插件.用来开发越狱程序.安装:1:安装mac ports我之前电脑没设密码安装不成功,后面设密码就可以正常安装,因为安装过程中会提示你输入密码参考我转载的文章Mac中MacPorts安装和使用2:安装DPKG在你电脑终端里输入命令“sudo port -f install dpkg”,在我本本上安装很快,但在一体机上安装很久,这个主要是用来打包成.deb文件用了。安装后最好重启下(官方是说要重启了)3:安装theosTheos是一个基于Make的编译环境,我们正是用它来编译生成deb文件的。从该网站下载https://g 阅读全文
posted @ 2013-03-05 18:45 willbin 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 1: 先 安装 Macportshttp://www.macports.org/install.phpps:有可能会卡在最后一分钟,需要重启后断网安装即可。2: 安装 dpkgsudo port -f install dpkg等待 阅读全文
posted @ 2013-03-04 18:24 willbin 阅读(1822) 评论(0) 推荐(0) 编辑
摘要: 绝大多数iPhone Developer/Distribution 的代码签名生成错误是因为证书和Provisioning profiles没有在开发系统上正确安装引起的。本文描述在开发 iPhone OS 应用程序时所需要的文件以及如何安装它们。这个技术说明为“Program User Guide”提供支持,Program User Guide 可以在 Portal Resources 下的iPhone Developer Program Provisioning Portal找到。如果你对 iPhone 开发刚入门,请先阅读 Program User Guide.需要什么 所有 iPho. 阅读全文
posted @ 2012-12-12 18:17 willbin 阅读(681) 评论(0) 推荐(0) 编辑