Monday, January 9, 2012

.gitignore for xcode project

Copy from this link
*.DS_Store

# Xcode
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
*.xcuserstate
*.pbxuser
*.perspective
project.xcworkspace/
xcuserdata/

# Generated files
*.o
*.pyc


#Python modules
MANIFEST
dist/
build/

# Backup files
*~.nib

# vim
*.swp
*~ 
 
-- update Oct 29 2012 --
I think the official gitignore (github) should be better :) 
link: https://github.com/GitHub/gitignore

Thursday, January 5, 2012

How to let iTunes manage data of your app?

I just read this Q&A from Apple: link.

Starting with iOS 3.2, applications can choose to allow users to add files to their app documents directory by adding the key UIFileSharingEnabled to their Info.plist. When that key is set, the contents of the directory <Application Home>/Documents will be accessible in iTunes where the user can add or remove files at will.

However, since I'm a newbie for developing iOS apps, and I don't have been a paid member of Apple, so I haven't tested this method yet :p