zoukankan      html  css  js  c++  java
  • swift开发笔记14

    dotOne.transform = CGAffineTransform.init(scaleX: 0.01, y: 0.01)

     

    // OptionSet,可以多选,例如[.repeat, .autoreverse]

    UIView.animate(withDuration: 0.6, delay: 0.0, options: [.repeat, .autoreverse], animations: {

                self.dotOne.transform = CGAffineTransform.identity

            }, completion: nil)

     

    // 枚举写发,不同于oc

        enum vcName: String {

            case chat = "ChatViewController"

            case stories = "StoriesViewController"

            case discover = "DiscoverViewController"

        }

        

    // rawvalue

    let chatVC = UIViewController.init(nibName: vcName.chat.rawValue, bundle: nil)

     

    // didMove,少了这行代码,view是乱的

    childVC.didMove(toParentViewController: parentViewController)

     

     

  • 相关阅读:
    stack2
    xctf 实时数据监测
    note-service2
    stack pivot学习
    sctf_2019_easy_heap 利用off-by-null构造出double free来向任一地址写入(经典)
    ciscn_2019_s_1 unlink或者of-by-null
    starctf_2019_babyshell 绕过循环检测注入shellcode
    sublime 安装package control
    windows上安装nodejs,升级npm,安装webpack指南
    mysql 常见语句
  • 原文地址:https://www.cnblogs.com/dengchaojie/p/7486284.html
Copyright © 2011-2022 走看看