Skip to content

JRomainG/MTPageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTPageView is a multi-tab controller built using a UIScrollView.

demo

Features

  • Manage tabs by adding, removing or reordering them,
  • Rapidly scroll past multiple tabs when handling many of them,
  • Switch tab without zooming out by swiping with 2 fingers from the edge of the screen,
  • Save space by hiding the bars when scrolling through a view's content,
  • "Protect" some tabs from being reordered or removed,
  • Customize the navigation bar and the toolbars displayed in each state,
  • Handle many tabs thanks to a custom UIPageControl that handles displaying any given number of dots.

Installing

  • Copy the whole "MTPageView" folder and the license to your workspace,
  • If you are using a storyboard, embed your view controller in a navigation controller and change the navigation controller's navigation bar class to MTNavigationBar.

See the MTPageViewExample sample project for an example of implementation.

Usage

MTPageView is used in [Tob](https://github.com/JRock007/Tob), an open source Tor browser for iOS.

About

A multi-tab page view controller

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published