Giter Club home page Giter Club logo

layoutwithscale's Introduction

LayoutWithScale

按比例约束适配,以iphone5尺寸为参照,通过自定义工具类,遍历视图的方式是使基于UiView的控件可以适配于不同手机Device.

Tips

  • 1 首先这种方法不适合ipad开发,只适用于手机(4 5 6 系列)
  • 2 这种方法并不推荐,因为现在有很多流行合理的适配方法,但是嘛,做开发,有时候可以自己嗨一下嘛,做出来也是好样的
  • 3 只是非常简单的按比例兼容。只要每张图都有@1x,@2x,@3x的话,该方法完全不会让图片模糊或者变形,能还原出设计师的最初稿
  • 4 由于iphone不同系列屏幕宽高比都是相差无几的,所以按照比例约束适配的方法绝对是可行的

###详情请查看iOS基于代码按比例约束方法进行屏幕适配

layoutwithscale's People

Contributors

zbk1nger avatar

Stargazers

renmoqiqi avatar Wenchao Hu avatar  avatar  avatar xiaoyuan  avatar  avatar 董辉 avatar ZhouHang avatar  avatar  avatar sua avatar

Watchers

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