How can I make a horizontal collector?

I want to make a horizontal compilation for my application, but I am not at all familiar with this. Can someone give an easy guide to guide how I do this?

+2
source share
2 answers

The best way is to fake your own using UIScrollViewpagination enabled. This is actually quite simple, imposing a scroll view on your own views for custom graphics.

+2
source

The open source horizontal selection component for iOS has just been released on GitHub .

UITableViewCell ( tableView:cellForRowAtIndexPath:):

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
STHorizontalPicker *horizontalPickerView = [[STHorizontalPicker alloc] initWithFrame:cell.frame];
horizontalPickerView.name = @"myPicker";
[horizontalPickerView setMinimumValue:0.0];
[horizontalPickerView setMaximumValue:100.0];
[horizontalPickerView setSteps:100];
[horizontalPickerView setDelegate:self];
[horizontalPickerView setValue:50.0];

UIPickerView , (UIScrollView, UIView CATextLayers ) , : .

+2

Source: https://habr.com/ru/post/1708582/


All Articles