Giter Club home page Giter Club logo

myiosdemo's Introduction

MyIOSDemo

IOS控件、组件Demo

1.Animations

常用动画,正在收集中~
image

2.BadgeView

数量标记,爆炸动画,使用方便。已在实际项目中使用。
image

使用实例:

let config = BageConfig()
config.backGroundColor = UIColor.orange
config.txtFront = UIFont.systemFont(ofSize: 10)
config.txtColor = UIColor.white
badgeView.frame = CGRect(x: 150, y: 300, width: 150, height: 150)
badgeView.setBadgeNumber(num: "28",config: config)
badgeView.finishBolock = {
       (finish:Bool) in
    DispatchQueue.main.asyncAfter(deadline: .now() + 1, execute: {
         self.badgeView.setBadgeNumber(num: "310+",config:config)
     })
   }
self.view.addSubview(badgeView)

3.ImageSwiper

模仿陌陌图片切换
image

4.YKCharts

自定义折线图,已在实际项目中使用。
image
使用:

//y轴
YKUIConfig *config = [YKUIConfig new];
config.yDescFront = [UIFont fontWithName:@"PingFang-SC-Medium" size:10.0f];
config.yDescColor = [UIColor colorWithRed:204.0f/255.0f green:204.0f/255.0f blue:204.0f/255.0f alpha:1.0f];
config.ylineColor =  [UIColor colorWithRed:204.0f/255.0f green:204.0f/255.0f blue:204.0f/255.0f alpha:0.3f];
    
//x轴
config.xDescFront = [UIFont fontWithName:@"PingFang-SC-Medium" size:10.0f];
config.xDescColor = [UIColor colorWithRed:204.0f/255.0f green:204.0f/255.0f blue:204.0f/255.0f alpha:1.0f];
//线
config.lineWidth = 2;
config.lineColor = [UIColor orangeColor];
config.circleWidth = 3;
    
YKLineDataObject *dataObject = [YKLineDataObject new];
dataObject.ySuffix = @"K";
dataObject.xDescriptionDataSource = @[@"周一",@"周二",@"周三",@"周四",@"周五",@"周六",@"周七"];
dataObject.showNumbers = @[@(1000.2),@(-100.2),@(2000.23),@(600.62),@(700.82),@(800.2),@(100.72)];
[_chartView setupDataSource:dataObject withUIConfgi:config];

5.YKPhotoMediaBroswer

仿微信朋友圈图片视频浏览,图片来源网络,本地,相册。已在实际项目中使用。
image

6.ZoomAndCropperImage

图片裁剪,可用于头像
image

7.Wave

水晶球动画,可用于加载动画,进度条指示
image

8.TableViewCache

列表图片加载缓存,实现缓存基本逻辑,可用于扩展更复杂缓存逻辑

myiosdemo's People

Contributors

klbest1 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.