zoukankan      html  css  js  c++  java
  • 《View Programming Guide for iOS》之frame、bounds和center之间的关系

    • The frame property contains the frame rectangle, which specifies the size and location of the view in its superview’s coordinate system.   

             frame是指定父视图的位置和大小的

    • The bounds property contains the bounds rectangle, which specifies the size of the view (and its content origin) in the view’s own local coordinate system. 

    •     bounds是指定当前视图的大小和位置的
    • The center property contains the known center point of the view in the superview’s coordinate system.

    •     center是指定在父视图的坐标系统中视图的中心位置

    frame_bounds_rects.jpg

    其他博客的一些看法

    然后呢 看一下frame、bounds跟center三者的定义描述

    frame:描述当前视图在其父视图中的位置和大小

    bounds:描述当前视图在其自身坐标系统中的位置和大小。 

    center:描述当前视图的中心点在其父视图中的位置。

     

  • 相关阅读:
    Android_方向传感器
    Android 网络图片查看器与网页源码查看器
    SQLite数据库_实现简单的增删改查
    Android 解析JSON
    多线程
    并发编程
    幂等性
    Django缓存机制
    计算机基础
    RESTful规范
  • 原文地址:https://www.cnblogs.com/lelun/p/5640612.html
Copyright © 2011-2022 走看看