Coder Social home page Coder Social logo

badgesegment's Introduction

BadgeSegment

用法 let segment = IWBadgeSegment.init(frame: CGRect.init(x: 16, y: 50, width: UIScreen.main.bounds.size.width-16*2, height: 44), segmentTitles: ["西瓜","冬瓜","南瓜","北瓜"]) segment.badges?[1] = 8 self.view.addSubview(segment) segment.addTarget(self, action: #selector(segmentAction), for: UIControl.Event.valueChanged)

let segment1 = IWBadgeSegment.init(frame: CGRect.init(x: 16, y: 50+50, width: UIScreen.main.bounds.size.width-16*2, height: 44), segmentTitles: ["西瓜","冬瓜","南瓜","北瓜"]) self.view.addSubview(segment1) segment1.badges?[2] = 10 segment1.tintColor = UIColor.init(red: 0.3, green: 0.8, blue: 0.1, alpha: 1) segment1.selectedTitleColor = UIColor.red segment1.normalTitleColor = UIColor.darkGray segment1.addTarget(self, action: #selector(segmentAction), for: UIControl.Event.valueChanged)

截图

Kingfisher

badgesegment's People

Contributors

sfwan2014 avatar

Stargazers

 avatar

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.