停止空想

老张的空中之家

存档于 ‘苹果’ 分类

如何让iPhone的程序名也localization

作者:admin 发表时间:四月 - 9 - 2009

如何根据不同的语言环境的设置,让程序显示不同的application name

Here’s an alternative way to do it using the localization features of OS X:

  1. Create an en.lproj directory if your project doesn’t already have one. 
  2. Inside the en.lproj directory create a file called InfoPlist.strings.
  3. Add this line to the file: ”CFBundleDisplayName” = “YourNewAppName”;
类别:iPhone, 苹果

Fix error (0xE8000001) For iPhone

作者:admin 发表时间:三月 - 30 - 2009

http://www.ilouyou.com/2009/02/fix-error-0xe8000001/

Ok, first trick, sometime somehow, you get a popup in XCode: “Your mobile device has encountered an unexpected error (0xE8000001) during the install phase:….”, there’s one way you can try(but not for 100% suer you can fix it).

  1. Use any ssh or sftp tool login into you iPhone(you must jailbreak it anyway~~)
  2. cd to “/var/mobile/Media/PublicStaging”, delete the app of your project name, that’s all!
  3. Rebuild your code and try.

如果你的手机按照提示,关机,重连,但是还是有该死的错误,如果手机是jailbreak,那么按照上面的方法吧。如果是有合约的,那么在organizer 窗口里面直接restore 手机

类别:iPhone

给sqlite数据库加密的两种方法

作者:admin 发表时间:三月 - 30 - 2009

一个是采用SQLCipher

Need to store sensitive information in your app? SQLCipher extends SQLite enabling transparent encryption and decryption of data using AES. Its source is available on Github.

SQLite is pluggable. Developers can create extensions and chain them into SQLite’s engine. Using this mechanism, SQLCipher embeds itself low enough in the stack to be transparent. As a developer, you simply issue queries as you normally would and all of the crypto is handled transparently.

阅读全文 »

类别:iPhone, sqlite3