Latest 0.0.2
Homepage https://github.com/MadalinaArdelean/MACustomSegmentedControl
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit
Authors

MACustomSegmentedControl

A custom segmented control, with rectangular segments.

Build Status

Installation

Drag and drop MACustomSegmentedControlView.h/m into your project.

Usage

CGRect frame = CGRectMake(0.0, 0.0, CGRectGetWidth(self.view.bounds), 100);
MACustomSegmentedControlView *segmentedControlView = [[MACustomSegmentedControlView alloc] initWithFrame:frame andItems:@[@"One", @"Two", @"Three", @"Four"]];
segmentedControlView.delegate = self;
segmentedControlView.title = @"Segmented control example";
[segmentedControlView setNumberOfSegmentsInLine:4 forOrientation:UIInterfaceOrientationMaskLandscape];
[segmentedControlView setNumberOfSegmentsInLine:2 forOrientation:UIInterfaceOrientationMaskPortrait];

[self.view addSubview:segmentedControlView];

Screenshot

Screenshot

Latest podspec

{
    "name": "CustomSegmentedControl",
    "version": "0.0.2",
    "license": {
        "type": "MIT"
    },
    "homepage": "https://github.com/MadalinaArdelean/MACustomSegmentedControl",
    "authors": {
        "Madalina Ardelean": "[email protected]"
    },
    "summary": "A custom segmented control with rectangular sgments.",
    "source": {
        "git": "https://github.com/MadalinaArdelean/MACustomSegmentedControl.git",
        "tag": "0.0.2"
    },
    "source_files": "SegmentedControl/Classes/GUI/CustomSegmentedControl/*.{h,m}",
    "frameworks": "UIKit",
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This