mkt

MKToggleButton

A binary toggle button that looks like the iOS7 toolbar toggles

Showing:

Popularity

Downloads/wk

0

GitHub Stars

68

Maintenance

Last Commit

7yrs ago

Contributors

2

Package

Dependencies

0

License

Apache License, Version 2.0

Categories

Readme

MKToggleButton

A binary toggle button that looks like the iOS7 toolbar toggles.

MKToogleButton Screenshot

Installation

MKToggleButton is available as a CocoaPods to install add to your podfile:

pod "MKToggleButton"

Usage

Tapping the button switches it between Normal and Selected state.

This button draws a rounded-rect button that fills in when selected. The fill/border colors use the control's tint color.

Use the selected state to set the titles. And use a UIControlEventValueChanged target to listen for changes.

For example:

 MKToggleButton* button = [[MKToggleButton alloc] initWithFrame:CGRectZero];
 [button setTitle:@"Normal" forState:UIControlStateNormal];
 [button setTitle:@"Selected" forState:UIControlStateSelected];
 [button addTarget:self action:@selector(selected:) forControlEvents:UIControlEventValueChanged];

License

Apache 2.0

Copyright (c) 2014 Michael Katz

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100