Giter Site home page Giter Site logo

autoresizingmaskdemo's Introduction

AutoresizingMaskDemo

autoresizingMask 纯代码和xib的用法

/* autoresizingMask 非常简单易用

*第一部分:xib篇 (1)上下左右红色选中,代表的是选中的那个边是固定不变的大小,没选中的是需要按比例变化的 (2)宽高红色选中代表是按比例变化,未选中代表不变

*第二部分:纯代码篇 (1)top left right bottom分别代表的是上部、左边、右边、底部是需要按比例变化的 (2)with heitght同样代表的是按比例变化

总结: xib和纯代码只有位置的关系有点儿区别,有些文章说反的,看怎么理解吧! (相反理解:xib设置了的代表的是固定的,纯代码写了设置的代表的可变的。)

另外新的autolayout是这个的增强版,autoresizingMask是autolayout的子集!!! */

autoresizingmaskdemo's People

Contributors

chancier avatar

Watchers

James Cloos avatar  avatar

Forkers

pppqppqpphejj

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.