caesarcat/InfinitePagingView
소개
InfinitePagingView is a subclass of UIView. It contains an endlessly scrollable UIScrollView.
웹 및 앱 개발What you can do
- Endlessly scrollable to horizontal (or vertical) direction.
- Each page view contents are available to a UIView based custom view.
- Implements paging delegate protocol.
- Page scroll action methods.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalInfinitePagingView
Overview
InfinitePagingView is a subclass of UIView. It contains an endlessly scrollable UIScrollView.
[CocoaPods]
pod `InfinitePagingView`
Features
- Endlessly scrollable to horizontal (or vertical) direction.
- Each page view contents are available to a UIView based custom view.
- Implements paging delegate protocol.
- Page scroll action methods.
Requirements
- iOS 4+
- Xcode 4.3 (Use ARC)
Screenshots

How to use
#import "InfinityPagingView.h"
...
- (void)loadView
{
[super loadView];
// create instance.
InfinitePagingView *pagingView = [[InfinitePagingView alloc] initWithFrame:CGRectMake(0.f, 30.f, 100.f, 50.f)];
// Adding each page views.(UIView based)
// (At least 3 pages.)
UIImageView *page1View = [[UIImageView alloc] initWithFrame:frame];
[pagingView addPageView:page1View];
...
[pagingView addPageView:page2View];
[pagingView addPageView:page3View];
[pagingView addPageView:page4View];
[pagingView addPageView:page5View];
[self.view addSubview:pagingView];
}
Build and run the project files. Enjoy more examples!
Public methods
- (void)addPageView:(UIView *)pageView;
Adds a view to the inner scrollview's subviews.
- (void)scrollToPreviousPage;
Scroll to the previous page.
- (void)scrollToNextPage;
Scroll to the next page.
InfinitePagingViewDelegate Protocols
- (void)pagingView:(InfinitePagingView *)pagingView willBeginDragging:(UIScrollView *)scrollView;
Tells the delegate when the paging view is about to start scrolling the content.
- (void)pagingView:(InfinitePagingView *)pagingView didScroll:(UIScrollView *)scrollView;
Tells the delegate when the user scrolls the content view within the receiver.
- (void)pagingView:(InfinitePagingView *)pagingView didEndDragging:(UIScrollView *)scrollView;
Tells the delegate when dragging ended in the paging view.
- (void)pagingView:(InfinitePagingView *)pagingView willBeginDecelerating:(UIScrollView *)scrollView;
Tells the delegate that the paging view is starting to decelerate the scrolling movement.
- (void)pagingView:(InfinitePagingView *)pagingView didEndDecelerating:(UIScrollView *)scrollView atPageIndex:(NSInteger)pageIndex;
Tells the delegate that the scroll view has ended decelerating the scrolling movement.
License
This software is released under the MIT License, see LICENSE.txt.
관련 프로젝트 살펴보기
불러오는 중…