iOS 翻轉菜單:JGFlipMenu

jopen 9年前發布 | 14K 次閱讀 iOS開發 移動開發 JGFlipMenu

JGFlipMenu 是 Swift 實現的翻轉菜單。

Menu System:

  • uses Interface Builder no coding required
  • menu items flip and expand/display linked UIViewControllers
  • when the linked controller completes, it is contracted back in the menu item
  • menu controller automatically registers the delegate & tracking tags
  • IBDesignable elements for text, font, text alignment, and colors
  • uses custom transition to expand & contract linked UIViewControllers

Requirements

  1. Xcode 6.1
  2. iOS 8.0+

Usage

  1. Copy these class files to your Xcode Project
    • JGFlipMenuItem.swift
    • JGFlipMenuController.swift
    • JGTransitionExpandContract.swift
  2. Create a UIViewController in Interface Builder and assign JGFlipMenuController as class
  3. Embed in a Navigation Controller (i.e. from Interface Builder menu: Editor->Embed In->Navigation Controller)
  4. Drag UIViews for each menu option, and assign JGFlipMenuItem as class for each
  5. For each JGMenuItem use the Attributes Inspector to modify the default IBInspectable elements as desired:
    • Title
    • Vertical & horizontal text centering
    • Front & back panel runtime colors
    • Font style and colors.
  6. Create or assign UIViewControllers to link your menu options to.
  7. Important: for each UIViewController it is required that you assign a Storyboard ID that matches exactly the JGMenuItem Title.

要求:

  1. Xcode 6.1

  2. iOS 8.0+

iOS 翻轉菜單:JGFlipMenu

項目主頁:http://www.baiduhome.net/lib/view/home/1427987763631

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!