ScrollPager

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

  • Owner: aryaxt/ScrollPager
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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)
])

Main metrics

Overview
Name With Owneraryaxt/ScrollPager
Primary LanguageSwift
Program languageSwift (Language Count: 2)
Platform
License:Other
所有者活动
Created At2015-02-23 02:30:45
Pushed At2020-10-22 04:49:59
Last Commit At2017-04-29 17:33:44
Release Count9
Last Release Name0.9 (Posted on 2017-04-29 17:34:03)
First Release Name0.1 (Posted on 2015-03-14 08:27:52)
用户参与
Stargazers Count510
Watchers Count11
Fork Count78
Commits Count44
Has Issues Enabled
Issues Count25
Issue Open Count8
Pull Requests Count9
Pull Requests Open Count5
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private