2010年11月26日

摘要: 1. 在这里下载Google App Engine SDK for Python: http://code.google.com/intl/zh-CN/appengine/docs/python/gettingstarted/devenvironment.html . 下载之后不要立即运行GoogleAppEngineLauncher,而是要把它放到一个目录中。我的目录是 \GoogleAppEn... 阅读全文
posted @ 2010-11-26 12:41 VinceOniPhone 阅读(1147) 评论(0) 推荐(0) 编辑

2010年11月25日

摘要: Google App Engine提供了免费的服务器空间和数据库,我打算用它来作为我的服务器。用Python语言。久仰Python已久,争取借此机会熟悉一下Python。 JSON是一种网络数据传输方式,我打算用它来作为我的应用程序访问服务器的方式。 两者已经很出名了,我在此做个记号。 Google App Engine官方中文主页: http://code.google.com/intl/zh-... 阅读全文
posted @ 2010-11-25 20:47 VinceOniPhone 阅读(440) 评论(0) 推荐(0) 编辑

2010年9月13日

摘要: 只需要在plist中加入UIApplicationExitsOnSuspend。 Opting Out of Background Execution If you do not want your application to remain in the background when it is quit, you can explicitly opt out of the backgroun... 阅读全文
posted @ 2010-09-13 10:22 VinceOniPhone 阅读(1808) 评论(0) 推荐(0) 编辑

2010年9月6日

摘要: 只需要一个语句: application.idleTimerDisabled = YES; 注意,这条语句不能滥用。 阅读全文
posted @ 2010-09-06 11:12 VinceOniPhone 阅读(649) 评论(0) 推荐(0) 编辑

2010年8月16日

摘要: iOS设备现在有三种不同的分辨率:iPhone 320x480, iPhone 4 640x960, iPad 768x1024。以前程序的启动画面(图片)只要准备一个Default.png就可以了,但是现在变得复杂多了。 如果一个程序,既支持iPhone又支持iPad,那么它需要包含下面几个图片: Default-Portrait.png iPad专用竖向启动画面 768x1024或者768x1... 阅读全文
posted @ 2010-08-16 16:09 VinceOniPhone 阅读(649) 评论(0) 推荐(0) 编辑

2010年7月20日

摘要: UIViewController有一个属性interfaceOrientation,但是它总是返回portrait,有可能是个bug。 只能这样: [UIApplication sharedApplication].statusBarOrientation 阅读全文
posted @ 2010-07-20 11:56 VinceOniPhone 阅读(911) 评论(0) 推荐(0) 编辑

2010年7月9日

摘要: UIImagePickerController是图片选择和照相机控件。 按照这样的方法可以直接拍照: UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.sourceType = UIImagePickerControllerSo... 阅读全文
posted @ 2010-07-09 22:11 VinceOniPhone 阅读(1685) 评论(0) 推荐(0) 编辑

2010年7月5日

摘要: 苹果有一个例子MailComposer,说的是在高版本的OS中调用新增的功能,并且在低版本的OS中依然能够运行。其中重要的一点就是weak link MessageUI.framework。 如何weak link呢?例子中没有明确说明。我搜了很久,没有发现。最后还是无意中找到了。 方法: 在XCode左面的Groups & Files中依次展开Targets, <YourApp&g... 阅读全文
posted @ 2010-07-05 13:04 VinceOniPhone 阅读(2990) 评论(0) 推荐(0) 编辑

2010年6月29日

摘要: 我需要在一个project中生成多个Target,通常是一个完全版,一个免费版。 今天遇到的情况比较特殊,需要生成一个多语言版,一个繁体中文版。本地化的时候遇到了问题。我生成了一个Localizable.strings给多语言版,然后生成了一个LocalizableTC.strings给繁体中文版,但发现LocalizableTC.strings根本没用,原来字符资源只能使用Localizable... 阅读全文
posted @ 2010-06-29 01:33 VinceOniPhone 阅读(456) 评论(0) 推荐(0) 编辑

2010年6月20日

摘要: Sparkle is an easy-to-use software update framework for Mac apps. http://sparkle.andymatuschak.org/ Many apps are using it, such as Transmission and CyberDuck, 阅读全文
posted @ 2010-06-20 01:06 VinceOniPhone 阅读(346) 评论(0) 推荐(0) 编辑

导航