A tree graph view control for iPad applications. This is a port of the sample code from Max OS X to iOS (iPad).

View the Project on GitHub epreston/PSTreeGraph


PSTreeGraph is a treegraph view control implementation for Cocoa Touch.

This is a port of the sample code from Max OS X to iOS (iPad). WWDC 2010 Session 141, “Crafting Custom Cocoa Views”

Example Project

There is an iPad example application to demonstrate the features of PSTreeGraph.


PSTreeGraph should be considered an viable solution for displaying single parent tree data in an interactive hierarchy.

This project follows the SemVer standard. The API may change in backwards-incompatible ways before the 1.0 release.

The goal of PSTreeGraph is to build a high-quality UI control designed specifically for the iPad. The inspiration / structure comes from WWDC 2010 Session 141, “Crafting Custom Cocoa Views”, an extremely valuable and informative presentation that has proven to be applicable (see this project) to other platforms.

Getting Started

See Wiki.

Useful information can also be found in the issues log. The following discussions might be helpful. If you can't find what you are looking for, start a new topic.

Known Improvements

See Milestones.

There are many places where PSTreeGraph could be improved:


You can generate documentation with doxygen. The example project includes a documentation build target to do this within Xcode. For more details, see the Documentation page in this projects wiki.

Copyright and License

Copyright 2010 Preston Software.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.