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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?