MAFTreeView is a complex reusable control, which builds on top of other simple
reusable controls, such as MAFUILabel, MAFUIImageView, and MAFUIView. MAFTreeView also uses
the skinning infrastructure of the MAFSkinManager, thus it depends on the MAFUIControls
library as well.
Set up the dependencies in your development environment. Start a single-view project in Xcode and
place all of the following sample code snippets into the ViewController class.
Assign a name to this view controller class (sample codes in this document refer to
it as MyTreeViewSampleViewController).
MAF libraries required:
- com.sap.mobile.maf.ui.ios/MAFUIComponents (MAFUIComponents.a)
- com.sap.mobile.maf.ui.ios/MAFTreeView (MAFTreeView.a)
iOS frameworks required:
- CoreGraphics.framework
- CoreText.framework
- Foundation.framework
- QuartzCore.framework
- UIKit.framework
The MAF tree view control provides a hard-coded skin that may differ from the
skinning XML delivered in a separate bundle file. To get the default custom skin and
to be able to apply skinning that differs from the hard-coded skin, add the
following iOS resource bundle files to the project:
- MAFTreeView.bundle
- MAFUIComponents.bundle