Giter Club home page Giter Club logo

vosegmentedcontroldemo's Introduction

  • 👋 Hi, I’m @pozi119
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

vosegmentedcontroldemo's People

Contributors

pozi119 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vosegmentedcontroldemo's Issues

麻烦加上一个indicatorWidth指示条长度的属性,方便pod

因为有时候指示条并不需要和segment同宽,所以我在你的VOSegmentedControl.h加上了
@property (nonatomic, assign ) float indicatorWidth;
属性,初始化为0
然后在VOSegmentedControl.m的- (void)drawRect:(CGRect)rect后面加上

- (void)drawRect:(CGRect)rect {
......
        self.indicatorLayer.frame = self.scrollLayer.frame;
        self.indicatorLayer.bounds = [self indicatorBounds];
        if (self.indicatorWidth != 0) {
            CGRect rect = self.indicatorLayer.bounds;
            rect.size.width = self.indicatorWidth;
            self.indicatorLayer.bounds = rect;
        }
}

麻烦你方便的时候改,方便以后pod不需要改你的源代码了

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.