iOS分頁式交互的一種實現方式:PageMenu

碼頭工人 8年前發布 | 34K 次閱讀 PageMenu iOS開發 移動開發

類似的分頁式的 ViewController 切換在最近的 app 交互中很常見,在內容關聯的同屏幕中進行類似的切換也很符合用戶的使用直覺。這個框架為我們提供了分頁式交互的一種實現方式。

Description

A fully customizable and flexible paging menu controller built from other view controllers placed inside a scroll view allowing the user to switch between any kind of view controller with an easy tap or swipe gesture similar to what Spotify, Windows Phone, and Instagram use

Similar to Spotify

PageMenuDemo PageMenuScreen2

Similar to Windows Phone

PageMenuDemo2 PageMenuScreen2

Similar to Instagram segmented control

PageMenuDemoSegmentedControlGif PageMenuDemoScreen6

Installation

CocoaPods

PageMenu is available through CocoaPods. !! Swift only !!

To install add the following line to your Podfile:

pod 'PageMenu'

Carthage

PageMenu is also available through Carthage. Append this line to Cartfile and follow this instruction.

github "uacaps/PageMenu"

Manual Installation

The class file required for PageMenu is located in the Classes folder in the root of this repository as listed below:

  • CAPSPageMenu.swift

官方網站:http://www.baiduhome.net/lib/view/home/1453252133151

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