GithubHelp home page GithubHelp logo

flower's Introduction

Flower

  • 本框架中的 SGTagsView 设计来源于 SGPagingView 框架中的 SGPageTitleView

Flower

视图 注释
SGActionSheet 弹窗
SGCycleScrollView 文字、图片轮播
SGPopupMenu 弹框菜单
SGItemsView item视图
SGTagsView 标签视图
SGTextView placeholder、placeholderColor、limitNumber

FlowerObjc

视图 注释
SGLabel 文字从左上方开始布局
SGTextView placeholder、placeholderColor、limitNumber
SGTagsView 标签视图
SGItemsView item视图
SGActionSheet 底部弹窗视图(微信、微博样式)
SGGuidePageView 引导页

代码介绍(详细使用,请参考 API)

SGTagsView 的使用

    SGTagsViewConfigure *configure = [SGTagsViewConfigure configure];

    NSArray *tags = @[@"iPhone 8", @"iPhone 8P", @"iPhone X", @"iPhone XR", @"iPhone XS", @"iPhone XS Max"];
    SGTagsView *tagsView = [SGTagsView tagsViewWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 50) configure:configure];
    tagsView.tags = tags;
    [self.view addSubview:tagsView];
    tagsView.singleSelectBlock = ^(SGTagsView * _Nonnull tagsView, NSString *tag, NSInteger index) {
        NSLog(@"%@ - - %ld", tag, index);
    };

SGActionSheet 的使用

    SGActionSheetConfigure *asc = [SGActionSheetConfigure configure];
    SGActionSheet *as = [[SGActionSheet alloc] initWithOtherTitles:@[@"确定"] configure:asc];
    as.otherTitleClickBlock = ^(NSInteger index) {
        NSLog(@"index  - - %ld", index);
    };
    [as actionSheet];

QQ音乐、美团、天猫以及SGTagsView标签效果图展示

flower's People

Contributors

kingsic avatar

Stargazers

xiaogege avatar Tobias Zittlau avatar  avatar 方不慌 avatar  avatar  avatar xubill avatar  avatar  avatar Michael.Yang avatar  avatar  avatar 时间小偷 avatar ZST avatar phinrod avatar Cesar avatar 码农甲乙丙 avatar  avatar  avatar 神剑 avatar DZflycat avatar  avatar gobeyond avatar 佐毅 avatar  avatar  avatar Been avatar selice avatar  avatar eric avatar  avatar Morgan Jiang avatar Simplelove avatar  avatar

Watchers

James Cloos avatar Michael.Yang avatar xubill avatar Tobias Zittlau avatar

flower's Issues

这个控件放到cell上无法点击

我在tableview的cell里面创建了此控件,能拿到高度,但是无法点击。请问如何解决呢?我已经试过didselect cell了,可以点击

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.