xml 配置UI 的工具:pegasus
仔细看了一下原理,感觉再强大一点支持各种自定义,更灵活的再加入事件处理,砸门就可以用它了。因为可以动态更新了。
https://github.com/jonathanellis/pegasus/wiki
Introduction
Pegasus is a lightweight open-source framework that lets you write your UI code in XML instead of Objective-C or using Interface Builder.
Documentation
- Installation - How to set up the environment for your first Pegasus project.
- Getting-Started - Writing your first Pegasus project (read this!).
- Views - Full listing of all view classes available in Pegasus.
- Types - Full listing of all types used in Pegasus.
- Layouts - Write your UI using layouts rather than positioning each view.
- Layouts-(Dev) - Documentation for new layout system on the
dev
branch. - Advanced-Views - Learn how to handle
UITableView
s andUIPickerView
s. - Extending-Glider - Using your own custom views with Glider (not yet supported).
- FAQ - Frequently (and some infrequently!) Asked Questions