AYSlidingPickerView 0.1.4

AYSlidingPickerView 0.1.4

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2016年3月

Ayan Yenbekbay维护。



  • Ayan Yenbekbay

实现一个可通过对导航栏进行点击或滑动显示的选择视图。

AYGestureHelpView

使用方法

AYSlidingPickerView 可以作为一个单例或一个常规对象使用。在两种情况下,都需要指定 mainViewitems 属性。

mainView 是当前显示在应用窗口中的视图。在大多数情况下,它就是视图控制器中的 self.view

items 必须由 AYSlidingPickerViewItem 对象组成。您可以根据以下方式生成它们

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];
}

有关更多信息,请参阅示例和文档。

安装

AYSlidingPickerView 通过 CocoaPods 提供。要安装,只需将以下行添加到您的 Podfile 中

pod "AYSlidingPickerView"

作者

Ayan Yenbekbay,[email protected]

许可证

Copyright (c) 2015 Ayan Yenbekbay <[email protected]>

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.