Code Monkey home page Code Monkey logo

zlcollectionview's Introduction

ZLCollectionView

仿QQ/QQ空间顶部提示窗

下面是示意图

这是我的简书地址 ,欢迎各位关注,我会不定期更新的。

你可以导入#import "ZLCollectionView.h",然后通过下面的方式来使用。

ZLCollectionView *collectionView = [ZLCollectionView collectionViewWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) itemCount:30];
[collectionView didSelectedItemsWithBlock:^(NSIndexPath *indexPath) {
    NSLog(@"ItemTag:%ld",indexPath.item);
}];
[self.view addSubview:collectionView];

你还可以根据自己的需求来修改样式,代码的不足之处,还请各位多多指教,

zlcollectionview's People

Stargazers

小蜜蜂 avatar iRyan avatar  avatar  avatar Jerelin avatar bestannwn avatar 李永华 avatar 孙琦 avatar  avatar  avatar Lizy avatar 且留下 avatar flywg avatar 格调main avatar  avatar FanXiaobin avatar  avatar  avatar Kans-dev avatar  avatar 卡卡西 avatar rapunzel avatar  avatar wangjungang avatar link avatar 拿根针尖对麦芒 avatar OnePiece110 avatar

Watchers

James Cloos avatar

zlcollectionview's Issues

不能视图大小

ZLCollectionView *collectionView = [ZLCollectionView collectionViewWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) itemCount:30]; [collectionView didSelectedItemsWithBlock:^(NSIndexPath *indexPath) { NSLog(@"ItemTag:%ld",indexPath.item); }]; [self.view addSubview:collectionView]; [collectionView mas_makeConstraints:^(MASConstraintMaker *make) { make.center.equalTo(self.view); make.size.mas_equalTo(CGSizeMake(200, 100)); }];
这样跑起来,视图位置不对,在5s模拟器上,ios 11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.