It appears that side-swipe menus are becoming a more common interface element as more information gets crammed into each iPhone app. Facebook has included it in their latest version and the new Gmail app appears to include it as well. I was wondering if anybody had thoughts on the most efficient way of developing something like this as it's becoming a more common interface element. While I have my own thoughts on how to build this, I'm curious to hear what other people think.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
Both Gmail and Facebook make heavy use of web views, so it's hard to say what's native code and what's rendered HTML. However, looking at the interface, it looks like they've placed a UITableView with a width narrower than the screen width (320pt) underneath of a UIView that contains the content they want to display. Selecting different tableview rows probably swaps out a subview of the content view.
At least, that's how I'd approach the problem. It's hard to dictate what it should be. Just jump right in and start experimenting!
I created a library for this. It is called MFSideMenu.
Among other things it includes support for iphone+ipad, portrait+landscape, menu on the left or right side, UITabBarController, and pan gestures.
Refer to here, a very good starting point: slide out navigation like facebook and path
Even better is JASidePanels. Easily implemented and works for both iPhone and iPad.
Github link: JASidePanels
Check out my solution for this question:
How to create custom slide menu without third party library.?
One single class that you only need to subclass and fill in with content.
Here is the class. For more details, see the above link.
There is a great library for this by Tom Adriaenssen: Inferis/ViewDeck
It's very easy to use and has a fairly large following.
EDIT:
For something a little more lightweight, check out: mutualmobile/MMDrawerController
It doesn't have all of the features of ViewDeck but is simpler to modify and extend.