Giter VIP home page Giter VIP logo

zfvoteviewdemo's Introduction

ZFVoteViewDemo(觉得好麻烦给个星star)

github地址:https://github.com/ZFbaby/ZFVoteViewDemo

##tabelView实现格瓦拉飞天投票效果

感谢GraphKit作者,demo中的绘图功能大部分实现采用他的方法和思路做的并进行了一些小改!

格瓦拉目前来说动画效果确实做的还比较好,虽然不是说很炫但做到精致,这次就模仿了它投票的模块

其实想到要实现它的方法很多,这次我就采用了苹果自带功能强大的控件UITableView

####ZFVoteViewDemo功能介绍

  1. 点击投票后当前控件实现飞天效果并转移到最顶部
  2. 当控件放大时cell上文字实现自适应宽高
  3. 按钮实现弹性放大效果,进度条动画比例等效果

效果图如下

image image image

######实现步骤:

  • 数据回来的时候就要根据数据算出每一行的高度并且算出总高
  • 设置cell的内边距离及x值
  • 创建投票主控件并添加到cell上
  • 每次点击选择一个cell的时候创建个投票主控件实现动画效果
  • 再用tableview的交换cell位置的方法实现cell的转换

zfvoteviewdemo's People

Contributors

zfbaby avatar

Stargazers

Fly.W avatar  avatar  avatar L_m avatar  avatar Levy avatar  avatar  avatar Oops avatar BigUncle avatar  avatar 王翔 avatar  avatar 寇诚意 avatar  avatar objcat avatar  avatar Young avatar  avatar  avatar chuxiao avatar . avatar  avatar  avatar coderly avatar yiimoney avatar oxiangyang avatar clg avatar  avatar Ely avatar smallqiang avatar  avatar Caesar@2017 avatar  avatar  avatar  avatar 海贼王 avatar  avatar Happy avatar  avatar  avatar 蜜柚yo avatar  avatar liujunqi avatar  avatar MRNAN avatar h liu avatar SevenFly avatar Yuemin Li  avatar Yeeewz1 avatar  avatar  avatar  avatar  avatar ego.yin avatar  avatar eason avatar juju avatar  avatar Alan avatar 桃子萌萌哒呀啦 avatar  avatar RedQ avatar xu avatar  avatar 李龙 avatar Mail Jeevas avatar  avatar Niclas avatar Hector Liu avatar  avatar xcode avatar  avatar 春哥的歌 avatar DSL avatar myProgramming avatar Nuno Sung avatar  avatar  avatar FunnySoul avatar luohaoyuan avatar SunWater avatar  avatar mister avatar  avatar 路飞 avatar BY_R avatar fengtengfei avatar  avatar Ice avatar 夜阑小雨 avatar shanchaojie avatar  avatar SlowDony avatar  avatar  avatar  avatar Qin avatar  avatar AbnerPei avatar

Watchers

tommyz avatar James Cloos avatar  avatar  avatar  avatar Elise 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.