ScrollPager

A scroll pager that displays a list of tabs (segments) and manages paging between given views

  • 所有者: aryaxt/ScrollPager
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

ScrollPager Version

A scroll pager similar to the one in Flipboard. The control creates a tabbar given a title or an image, and has the option of connecting to a UIScrollView to automatically present given views and manage paging between these views

alt tag

Usage:

Drag and drop a UIView into storyboard or xib.

OPTIONAL: If you like to use a scroll view assign the outlet to a scrollView.

Tab with text

scrollPager.addSegmentsWithTitles(["Home", "Public Feed", "Profile"])

Tab with images and views (will automatically add paging to scrollview and displays the views accordingly)

scrollPager.addSegmentsWithTitlesAndViews([
  ("Home", firstView),
  ("Public Feed", secondView),
  ("Profile", thirdView)
])

Tab with images

secondScrollPager.addSegmentsWithImages([
  UIImage(named: "envelope")!,
  UIImage(named: "home")!
])

Tab with images and views (will automatically add paging to scrollview and displays the views accordingly)

scrollPager.addSegmentsWithImagesAndViews([
  (UIImage(named: "envelope")!, firstView),
  (UIImage(named: "home")!, secondView),
  (UIImage(named: "anotherImage")!, thirdView)
])

主要指標

概覽
名稱與所有者aryaxt/ScrollPager
主編程語言Swift
編程語言Swift (語言數: 2)
平台
許可證Other
所有者活动
創建於2015-02-23 02:30:45
推送於2020-10-22 04:49:59
最后一次提交2017-04-29 17:33:44
發布數9
最新版本名稱0.9 (發布於 2017-04-29 17:34:03)
第一版名稱0.1 (發布於 2015-03-14 08:27:52)
用户参与
星數510
關注者數11
派生數78
提交數44
已啟用問題?
問題數25
打開的問題數8
拉請求數9
打開的拉請求數5
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?