Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

[DEPRECATED] Implementation of a picker view that can be shown by either tapping on or panning the navigation bar

License

Notifications You must be signed in to change notification settings

yenbekbay/AYSlidingPickerView

Repository files navigation

AYSlidingPickerView

Version License Platform

Implementation of a picker view that can be shown by either tapping on or panning the navigation bar.

AYGestureHelpView

Usage

AYSlidingPickerView can be used either as a singleton or as a regular object. In both cases it is necessary to specify the mainView and items properties.

mainView is simply the view that is currently displayed in the app's window. In most cases, it's just self.view in a view controller.

items must consist of AYSlidingPickerViewItem objects. You can generate them as follows:

NSMutableArray *items = [NSMutableArray new];
for (NSString *title in titles) {
  AYSlidingPickerViewItem *item = [[AYSlidingPickerViewItem alloc] initWithTitle:title handler:^(BOOL completed) {
    // Action to be performed on selection
  }];
  [items addObject:item];
}

For more information, please refer to the example and documentation.

Installation

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

pod "AYSlidingPickerView"

Author

Ayan Yenbekbay, ayan.yenb@gmail.com

License

Copyright (c) 2015 Ayan Yenbekbay <ayan.yenb@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

About

[DEPRECATED] Implementation of a picker view that can be shown by either tapping on or panning the navigation bar

Resources

License

Stars

Watchers

Forks

Packages

No packages published