zoukankan      html  css  js  c++  java
  • iOS XIB使用中适配iPhoneX的安全区域、调用UiView动画

    2、调用UiView动画

     

        WeakSelf;

        self.detailsViewBom.constant += 230;

        [UIView animateWithDuration:animotiontime animations:^{

            //需要这样去重制View

            [weakSelf.view layoutIfNeeded];

            

        } completion:^(BOOL finished){

            

            weakSelf.detailsBtn.userInteractionEnabled = YES;

            

        }];

    1、在为控制器添加xib的时候,由于版本更新需要将safe alert的勾选取消

    在约束视图距离顶端以及底端距离时勾选一下这一个即可

  • 相关阅读:
    UVa 1394 约瑟夫问题的变形
    UVa 572 油田(DFS求连通块)
    UVa 699 下落的树叶
    Prim求解最小生成树
    UVa 839 天平
    UVa 11988 破损的键盘(链表)
    UVa 442 矩阵链乘(栈)
    UVa 二叉树的编号(二叉树)
    UVa 12100打印队列(队列)
    约瑟夫圆桌问题
  • 原文地址:https://www.cnblogs.com/xujiahui/p/9832035.html
Copyright © 2011-2022 走看看