I'm looking for a tutorial or for some ideas to make a custom controller that looks like the one in the Twitter app for iPad, I mean the stacked pages with a main menu on the left. Thanks in advance for any help!!
相关问题
- how do you prevent page scroll in textarea on mobi
- Rails how to handle error and exceptions in model
- How to change the backgroundColor for all UITableV
- The bundle identifier cannot be changed from the c
- execute method when iPhone enters landscape mode
相关文章
- UITableView dragging distance with UIRefreshContro
- How do you detect key up / key down events from a
- is there a callback option with twitter's “fol
- Can I release an app without the device?
- Twitter name length in DB
- Twitter oauth refresh token
- Universal iPad App rejected because of launch cras
- What does the “Use for Development” button in Xcod
we had created a mock project and added in github
https://github.com/raweng/StackScrollView
I have a solution for this.
Place a table view as a sidebar menu on the left side. Place a scroll view on the top. Add content into scroll view.
The scroll view will cover the table view. Set the width of content size of the scroll view to the sum of the content width and the sidebar width. The content position is at ( sidebar width, 0 ). You could drag it to cover or reveal the sidebar.
The problem is the table view could not receive any touch event for it is covered by the scroll view.
So I implement a subclass.
Change the scrollview class to UICascadeScrollView and set the passthroughView to sidebar.
That's all.
==================================================================================
A sample of three cascade layers with a table view as a sidebar.
git@github.com:slavikshen/CascadeScrollView.git
https://github.com/slavikshen/CascadeScrollView
This is my first commit to git hub. Pls tell me, if there is anything wrong.