俺是一个瓜娃!!!
xiaozhao-521 · 共 254 篇文章
sdk 3.0 手势事件
一:手势事件类型 1.父类 UIGestureRecognizer 是一个抽象类,是所有手势事件的父类。 The concrete subclasses of UIGestureRecognizer are the following: UITapGestureRecognizer //轻拍 UIPinchGestureRecognizer //捏合 UIRotationGestureRecognizer //旋转 UISwipeGestureRecognizer //扫 UIPanGestureRecognizer//拖拽 UILongPressGestureRecognizer //长按…
2011-11-08 17:57 · 代码 · 评论(0)
SQLITE3 使用
一:USING SQLITE3 1.add libsqlite3.dylib library to your project 2.#import "sqlite3.h" 3.declare a variable of type sqlite3 ,like this "sqlite3 *db" 4.openDB -(void) openDB{ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES); NSString *documentDir = [ paths…
2011-11-08 16:21 · 代码 · 评论(0)
animationWithKeyPath
CABasicAnimation animationWithKeyPath Types When using the ‘CABasicAnimation’ from the QuartzCore Framework in Objective-C, you have to specify an animationWithKeyPath. This is a long string and is not easily listed in the CABasicAnimation, CAPropertyAnimation, or the CAAnimation class. I ended up …
2011-09-19 16:11 · core animation · 评论(0) · Objective-C
关于iphone 利用hpple解析html的问题
最近在用happe解析html中的图片。有个翻页操作,如果请求的html中没有需要解析的标记的话会造成xmllib2的内存泄露。 这一个是happ的一个bug吧。 修改方法: 修改 XPathQuery.m 类中的 写道 NSArray *PerformXPathQuery(xmlDocPtr doc, NSString *query) { xmlXPathContextPtr xpathCtx; xmlXPathObjectPtr xpathObj; /* Create xpath evaluation context */ xpathCtx = xmlXPathNewContext(do…
2011-08-04 18:28 · objective-c · 评论(0)
iphone releas 后retatincount 为1
I created a simple program to test the retain/release methods in Objective-C memory management. As I understand of ObjC memory management, I expect that a object with retain count = 1 on which I call release get the retain count decremented to zero and then released. But this test program show that…
2011-07-25 17:34 · 问题整理 · 评论(0)
iphone hpple 解析html,xml
使用Objective-C解析HTML或者XML,系统自带有两种方式 一个是通过libxml, 一个是通过NSXMLParser。 不过这两种方式都需要自己写很多编码来处理抓取下来的内容,而且不是很直观。 有一个比较好的类库hpple,它是一个轻量级的包装框架,可以很好的解决这个问题。 它是用XPath来定位和解析HTML或者XML。 安装步骤: -加入 libxml2 到你的项目中 Menu Project->Edit Project Settings 搜索 “Header Search Paths” 添加新的 search path “${SDKROOT}/usr/include/lib…
2011-07-19 16:21 · objective-c · 评论(0)
iPhone私有API使用学习笔记
一.基本知识 iPhone中的API除了公开的API:Published API外(或者叫文档中记录的API:Documented API),还有两类API:私有API:Private API和未公开的API:UnPublished API(或者叫文档中未记录的API:Undocumented API)。其中私有API是指放在PrivateFrameworks框架中的API,未公开的API是指虽然放在Frameworks框架中,但是却没有在苹果的官方文档中有使用说明、代码介绍等记录的API。后两种API是有区别的,按苹果的说法,未公开的API是还不够成熟,可能还会变动的API,等完全成型了后…
2011-07-15 22:13 · iphone 破解开发 · 评论(0)
class-dump-x 提取私有库里面的隐藏文件
class-dump This is a command-line utility for examining the Objective-C runtime information stored in Mach-O files. It generates declarations for the classes, categories and protocols. This is the same information provided by using 'otool -ov', but presented as normal Objective-C declarations, so i…
2011-07-15 21:57 · iphone 破解开发 · 评论(0)
iphone 后台进程(守护进程)
1、越狱 2、写一个守护进程 3、在 /Library/LaunchDaemons放一个list文件。3 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>MyScript</string> <key>ProgramArguments</…
2011-07-14 11:13 · iphone 破解开发 · 评论(1)
iphone 实现裁剪图片
方法1: - (void)drawRect:(CGRect)rect { CGContextRef context=UIGraphicsGetCurrentContext(); //设置倒立 CGContextRotateCTM(context,M_PI); //重新设置坐标 self.bounds获取整个屏幕的区域。 CGContextTranslateCTM(context, -self.bounds.size.width,-self.bounds.size.height); //CGContextScaleCTM(context, 1.0, -1.0); CGRect imageRec…
2011-07-13 09:16 · 代码 · 评论(0)
app makefile 模板
# Makefile for iPhone Application for Xcode gcc compiler (SDK Headers) IPHONE_IP=192.168.1.115 DARWINVERSION=10 GCCVERSION=4.2.1 SDKVERSION=3.1 ENVP=IPHONEOS_DEPLOYMENT_TARGET=3.0 PROJECTNAME=iColorCall APPFOLDER=$(PROJECTNAME).app INSTALLFOLDER=$(PROJECTNAME).app SDK=/Developer/Platforms/iPhoneOS.…
2011-06-28 17:17 · iphone 破解开发 · 评论(0) · Mobile · C# · SSH · Apple · SVN
makefile 基础知识
Makefile基础 : make命令会自动读取当前目录下的 Makefile 文件,完成相应的编译步骤。Makefile由一组规则(Rule) 组成,每条规则的格式是: target ... : prerequisites ... command1 command2 ... 例如: main: main.o stack.o maze.o gcc main.o stack.o maze.o -o main main 是这条规则的目标(Target) , main.o 、 stack.o 和 maze.o 是这条规则的条件(Prerequisite) 。 目标和条件之间的关系是: 欲更新目标,…
2011-06-28 17:09 · iphone 破解开发 · 评论(0) · C · C++ · GCC · Unix · C#
dpkg相关
dpkg 是 Debian 软件包管理系统的中流砥柱, 负责安装卸载软件包, 配置, 以及维护已安装的软件包. 也是Debian系统中众多软件包管理工具的后端. 有关 dpkg 的更多介绍请参阅: http://www.dpkg.org dpkg 通过数据库来维护系统中软件, 这包括文件清单, 依赖关系, 软件状态, 等等详细的内容, 通常在/var/lib/dpkg目录下. 并确保系统与数据库的情况相一致.因此,dpkg在处理程序时非常健壮,和优秀. dpkg 在处理软件包时, 首先要判断是否会引起系统的混乱, 当发现可能出现时, dpkg 将拒绝安装此软件, 而不是自作主张将软件装入系统…
2011-06-28 16:08 · iphone 破解开发 · 评论(0) · F# · 配置管理 · 脚本 · Debian