Monthly Archives: January 2009

How do I obtain the current graphics context for 2D drawing?

How do I obtain the current graphics context for 2D drawing? You obtain the current context for 2D drawing from within your implementation of the drawRect: method for the UIView object that you plan to draw to, by calling the … Continue reading

Posted in Uncategorized | Leave a comment

Apple Doc6 –FAQ

Answers to Common Questions (FAQ) If you have questions about iPhone OS development, this page lists the FAQ pages available to help answer those questions. Questions have been broken down into several general categories. For the list of questions available … Continue reading

Posted in Uncategorized | Leave a comment

Apple Doc5–Creating an iPhone Application

Creating an iPhone Application An iPhone application has a different purpose and requires a very different design approach(设计方法) with desktop computer. That approach needs to take advantage of the strengths of iPhone OS and forego features in a mobile environment. … Continue reading

Posted in Uncategorized | Leave a comment

Apple Doc4–Signing Code For iPhone Development

Signing Code For iPhone Development Code signing ensures the integrity of code and positively identifies the originator of the code. Apple requires all iPhone applications to be digitally signed before they can be run on a development system and before … Continue reading

Posted in Uncategorized | Leave a comment

Apple Doc3–Learning Objective-C: A Primer

Learning Objective-C: A Primer The Objective-C language is a simple computer language designed to enable sophisticated object-oriented programming. Objective-C extends the standard ANSI C language by providing syntax for defining classes, methods, and properties, as well as other constructs that … Continue reading

Posted in Uncategorized | Leave a comment

Apple Doc2–Tools for iPhone OS Development

Tools for iPhone OS Development Xcode is Apple’s suite of development tools that provide support for project management, code editing, building executables, source-level debugging, source-code repository(存贮) management, performance tuning, and much more. At the center of this suite is the … Continue reading

Posted in Uncategorized | Leave a comment

Apple Doc1–iphone OS Overview(Simplified)

As it will be too time-consuming to re-read  hundreds of pages of documents about iphone when needed, I write this simplified version of Apple doc to highlight the main idea of these articles. iPhone OS Overview iPhone OS comprises the … Continue reading

Posted in Uncategorized | Leave a comment

MacDrive 注册破解方法

装上了Mac,要在Windows下访问Mac盘唯一的办法就是用MacDrive。可是MacDrive只有7天试用期,于是上网查了破解方法: 1. 下载安装MacDrive 7.2.2(兼容Vista) 2. 下载MacDrive 7注册机 MacDrive_7_Generic_keygen.rar 3. 注册时打开注册机,在MacDrive中输入注册机给出的serial number,选择other options那项,下一步中会给出本机的computer id 如:C3-0257659795-0180161713-586 则 去掉前两位,在注册机第二行中输入 0257659795-0180161713-586 4. 此时注册机会得出验证码(第三行),将验证码输入MacDrive即可注册成功。   感谢MacFans论坛的gyfhgyfh提供的正确破解方法,原帖地址:http://www.macfans.com.cn/thread-110504-1-1.html   prtscreen键不知被什么木马损坏了,今天下载了PrintScreen.rar设其他组合键截屏,终于可以把MacDrive成功注册后的图截屏上来了:  

Posted in Uncategorized | Leave a comment

iphone HelloWorld

装完Mac系统和iphone sdk,接下去的第一件事当然是HelloWorld。上网查了很多资料,原以为要做个HelloWorld应该不费吹灰之力,但是查了好久,不是版本不一致(XCode 3.1.2,iphone SDK 2.2),就是按其方法无法实现功能。坚持了一下,终于找到一个国外的朋友的HelloWorld视频,其功能是实现按下Button在Label中显示Hello World,原址为:http://www.iphonedevcentral.org/tutorials.php?page=ViewTutorial&id=49&uid=27391603 下面我来翻译一下视频内容:1. 新建项目:XCode--File--New Project--Windows-based Application--Hello World 2. 设计GUI:2.1. 创建容器:双击Resources文件夹中MainWindow.xib;Tools--Library把“View”拖到窗体中。2.2. 创建MainView窗体类:Tools--Identity Inspector,class:MainView,Outlet:mainText (按Tab)UILabel,Action:showText。2.3. 创建MainView中的控件:从Library中拖一个Label和一个Round Rect Button到窗体中。双击按钮,把文字改为Press;选中标签,在identity inspector中的第一个选项卡下的layout选择居中,然后把label的文字删除。2.4. 连接控件和MainView的成员:点击窗体背景--选择identity inspector的第二个选项卡(向右箭头)--mainText右侧的加号拖到label上,showText右侧的加号拖到button上并选择Touch Up Inside。2.5. 保存GUI:File--Write Class Files--Save--打钩 3. 添加代码:保存上述GUI后会生成MainView.h和MainView.m,把这两个文件拖到Class文件夹下。在MainView.h中把注释改为:UIView,添加一个标签作为其属性: @property (nonatomic, retain) UILabel *mainText;在MainView.m中添加:@synthesize mainText; 在IBAction中添加语句:mainText.text = @"Hello World"; 4. … Continue reading

Posted in Uncategorized | Leave a comment

Mac OS 截图

Mac下截屏用:Alt+Shift+3。手头没有Fat32格式的U盘(NTFS只读;Fat会出错,格式化成Fat32后Mac不认得),于是想出了一个迂回战术:截屏--发到msn邮箱--到vista中登陆space,终于能够把Mac的截屏发上来了。

Posted in Uncategorized | Leave a comment