Skip to content

JhPageItemView - UIcollectionView nằm ngang lăn lộn phân trang,UICollectionViewLayout hai loại hình thức ( hệ thống hình thức, tự định nghĩa hoành bài hình thức ), hệ thống hình thức cùng loại với đào bảo ta kênh, tự định nghĩa hoành bài hình thức cùng loại mỹ đoàn, Mỹ Đoàn cơm hộp hoành bài thực đơn. pageControl ba loại hình thức ( tiểu viên điểm, trường điều, tiểu viên điểm + trường điều ), cũng có thể thiết trí vị trí ( tả trung hữu ).

Notifications You must be signed in to change notification settings

iotjin/JhPageItemView

Repository files navigation

JhPageItemView

JhPageItemView - UIcollectionView nằm ngang lăn lộn phân trang,
UICollectionViewLayout hai loại hình thức ( hệ thống hình thức, tự định nghĩa hoành bài hình thức ),
Hệ thống hình thức cùng loại với đào bảo ta kênh, tự định nghĩa hoành bài hình thức cùng loại mỹ đoàn, Mỹ Đoàn cơm hộp hoành bài thực đơn.
pageControl ba loại hình thức ( tiểu viên điểm, trường điều, tiểu viên điểm + trường điều ), cũng có thể thiết trí vị trí ( tả trung hữu ).


Examples

  • Demo1
@property (nonatomic, strong) JhPageItemView *pageItemView;

- (JhPageItemView *)pageItemView {
if(!_pageItemView) {
CGRectframe =CGRectMake(0,100,Kwidth,90*2+5*2+10*2);
JhPageItemView *view = [[JhPageItemViewalloc]initWithFrame:framewithmaxColumn:5maxRow:2];
view.backgroundColor= [UIColorredColor];
view.Jh_topBottomMargin=10;//Trên dưới khoảng cách mới bắt đầu vị trí khoảng thời gian
view.Jh_leftRightMargin=10;//Tả hữu khoảng cách mới bắt đầu vị trí khoảng thời gian
view.Jh_itemHorizontalMargin=5.f;
view.Jh_itemVerticalMargin=5.f;
view.Jh_currentColor= [UIColorgreenColor];
//view.Jh_otherColor = [UIColor grayColor];
view.Jh_layoutStyle= JhSystemHorizontalArrangement;
view.delegate= self;
self.pageItemView= view;
[self.viewaddSubview:self.pageItemView];
}
return_pageItemView;
}

//UIcollectionview cam chịu hình thức
[selfpageItemView];
self.pageItemView.Jh_dataArray = self.dataArray;
  • Demo2
@property (nonatomic, strong) JhPageItemView *pageItemView2;

- (JhPageItemView *)pageItemView2 {
if(!_pageItemView2) {
CGRectframe =CGRectMake(0,350,Kwidth,90*2+5*2+5*2);
JhPageItemView *view = [[JhPageItemViewalloc]initWithFrame:framewithmaxColumn:5maxRow:2];
view.backgroundColor= [UIColorredColor];
view.Jh_topBottomMargin=5;
view.Jh_leftRightMargin=10;
view.Jh_itemHorizontalMargin=5.f;
view.Jh_itemVerticalMargin=5.f;
view.Jh_currentColor= [UIColoryellowColor];
view.Jh_layoutStyle= JhCustomHorizontalArrangement;
view.Jh_pageControlStyle= JhPageControlStyelDotAndRectangle;//Viên điểm + trường điều hình thức
view.Jh_pageControlAlignmentStyle= JhControlAlignmentStyleRight;
view.Jh_pageControlMarginSpacing=10;
view.Jh_pageControlSpacing=5;
view.delegate= self;
self.pageItemView2= view;
[self.viewaddSubview:self.pageItemView2];
}
return_pageItemView2;
}

//Tự định nghĩa hình thức
[selfpageItemView2];
self.pageItemView2.Jh_dataArray = self.dataArray;
  • Demo3
@property (nonatomic, strong) JhPageItemView *pageItemView3;

- (JhPageItemView *)pageItemView3 {
if(!_pageItemView3) {
CGRectframe =CGRectMake(0,600,Kwidth,90*1+5*2+5*2);
JhPageItemView *view = [[JhPageItemViewalloc]initWithFrame:framewithmaxColumn:5maxRow:1];
view.backgroundColor= [UIColorredColor];
view.Jh_topBottomMargin=5;
view.Jh_leftRightMargin=10;
view.Jh_itemHorizontalMargin=5.f;
view.Jh_itemVerticalMargin=5.f;
view.Jh_currentColor= [UIColorgreenColor];
view.Jh_layoutStyle= JhCustomHorizontalArrangement;
view.Jh_pageControlAlignmentStyle= JhControlAlignmentStyleLeft;
view.Jh_pageControlStyle= JhPageControlStyelRectangle;//Trường điều hình thức
view.Jh_pageControlMarginSpacing=10;
view.Jh_pageControlSpacing=5;
//view.Jh_pageControlIsHidden = YES;
view.delegate= self;
self.pageItemView3= view;
[self.viewaddSubview:self.pageItemView3];
}
return_pageItemView3;
}

//Tự định nghĩa hình thức
[selfpageItemView3];
self.pageItemView3.Jh_dataArray = self.dataArray;
  • Điểm đánh sự kiện
#pragma mark- JhPageItemViewDelegate
- (void)JhPageItemViewDelegate:(JhPageItemView *)JhPageItemViewDeleagte indexPath:(NSIndexPath* )indexPath {
NSLog(@ "Điểm đánh cell --- indexPath ---%@",indexPath);
}

About

JhPageItemView - UIcollectionView nằm ngang lăn lộn phân trang,UICollectionViewLayout hai loại hình thức ( hệ thống hình thức, tự định nghĩa hoành bài hình thức ), hệ thống hình thức cùng loại với đào bảo ta kênh, tự định nghĩa hoành bài hình thức cùng loại mỹ đoàn, Mỹ Đoàn cơm hộp hoành bài thực đơn. pageControl ba loại hình thức ( tiểu viên điểm, trường điều, tiểu viên điểm + trường điều ), cũng có thể thiết trí vị trí ( tả trung hữu ).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published