读书人

A Visual Guide to Manually Adding T

发布时间: 2012-09-29 10:30:01 作者: rapoo

A Visual Guide to Manually Adding Three20 to your Xcode 4 Project

?

Three20 is a modular open source Objective-C library used by numerous applications in the App Store, including well-known brands such as Facebook, Meetup.com, Pulse, etc. It provides developers with powerful view controllers built on top of the existing iOS framework.

A comprehensive set of ?instructions?on how to add Three20 to your project both manually and automatically for Xcode 3 can be found on their website. Along with that there is also a nice little?transition guide?for Xcode 4 users on the automatic method of adding Three20 to your project. As a developer that has just recently transitioned from Xcode 3 to Xcode 4, manually adding Three20 and figuring out where exactly you can add dependency targets and link libraries was a bit of a hunting game. So here is a little visual guide based on the original instructions provided by Three20:

1) Get the code Clone the three20 git repository: git clone git://github.com/facebook/three20.git

2)?Locate the “Three20.xcodeproj” file under “three20/src/Three20/”. Drag Three20.xcodeproj and drop it onto the root of your Xcode project’s “Groups and Files” sidebar. If?a dialog appears — make sure “Copy items” is unchecked and “Reference Type” is “Relative to Project” before clicking “Add”. Open the Three20 Xcode Project that you just added to your app and expand the “Dependencies” group.?Select all of the projects listed there and drag them to your app as well. You should now have the following list of Three20 projects added to your app:

?

读书人网 >移动开发

热点推荐