Skip to content

abouzek/ABSegmentedViewController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABSegmentedViewController

Version License Platform

Description

A segmented control driven view controller container for two tabs designed with a flat interface. The selection/deselection colors and font attributes are fully customizable, and the interface simple to use. Inspired by the design of the tables in the TriplAgent app.

Example

alt tag

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

An instance of ABSegmentedViewController should be created using the static initializer:

+(instancetype) ABSegmentedViewController segmentedContainerViewControllerWithViewControllers:(NSArray *)viewControllers
													    selectedTextAttributes:(NSDictionary *)selectedTextAttributes 
                                                       deselectedTextAttributes:(NSDictionary *)deselectedTextAttributes 	
                                                       selectedBackgroundColor:(UIColor *)selectedBackgroundColor
                                                       deselectedBackgroundColor:(UIColor *)deselectedBackgroundColor
  • The viewControllers NSArray should contain UIViewControllers which implement the included AVSegmentedInternalViewController protocol (AVSegmentedInternalViewController.h).

  • The textAttributes NSDictionaries are standard attributed text attribute NSDictionaries.

  • The selected and deselected terms refer to the state of the segments in the segmented control.

Installation

ABSegmentedViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ABSegmentedViewController"

Author

Alan Bouzek, github: abouzek, alan.bouzek@gmail.com

License

ABSegmentedViewController is available under the MIT license. See the LICENSE file for more info.

About

A stylized, flat segmented control driven view controller container meant for two tabs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published