Category Archives: Books



作为一本简易的UI模式参考书,本书分10大类(包括导航、表单、表和列表、搜索+排序+过滤、工具、图表、Invitations、控件和反馈、帮助)分别介绍了70个移动应用设计模式(包括反模式),特针对当前的iOS、 Android、BlackBerry、WebOS、 Windows Mobile和Symbian应用提供了400多个屏幕截图。本书力求通过截图和图解帮助读者更好地理解和利用UI设计模式,以解决常见的设计难题,为其提供“即学即用”式的技巧和经验。
Theresa Neil 是德克萨斯州奥斯汀市的一名用户体验咨询师。她组建了一个用户体验
目,请浏览她的网站,或访问她的Twitter 账户@theresaneil。

原书书名 Mobile Design Pattern Gallery: UI Patterns for Mobile Applications
原书书号 978-1449314323
原书国家 美国
原书出版社 O’Reilly
原书页数 298


iOS howto work with container viewcontroller


Here’s a simple timeline scheme to resume the steps needed to attach a new child and remove the previous one. This is a common behaviour of almost all the navigation patterns you will build.
1 Current detail controller: [current willMoveToParentViewController:nil]
2 Next detail controller: [container addChildViewController:next]
2.B Next detail controller: [next willMoveToParentViewController:self] (Automatically called by point 2)
3 Next detail controller: [container.view addSubview:next.view]
4 Current detail controller: [current.view removeFromSuperView]
5 Current detail controller: [current removeFromParentViewController]
6 Current detail controller: [current didMoveToParentViewController:nil] (automatically called by point 5)
7 Next detail controller: [next didMoveToParentViewController:self]
You can build any navigation pattern whatsoever just using these “new” functions. Some really good examples of Container Controllers are obviously the UINavigationController and UITabBarController. They have different logics and different usages but they have in common the final result of showing the user one View Controller at a time.
Another example of Container Controller is the UISplitViewController that is able to show two Controllers at the same time .
In a few words, your custom Container has essentially the responsibility to define which controllers have to be shown and how the user can move between Controllers.