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)

     

     

  • 相关阅读:
    MyEclipse配置Tomcat 并编写第一个JSP程序
    ubuntu安装postgresql与postgis
    ubuntu12.10升级至14.04
    ubuntu 12.10无法用apt-get安装软件 Err http://us.archive.ubuntu.com quantal-updates/main Sources 404 Not
    hive0.13网络接口安装
    hive报错 Another instance of Derby may have already booted the database
    前端开发者进阶之函数柯里化Currying
    js中的事件委托
    while 和 for 对比
    小图标文字对齐的终极解决方案
  • 原文地址:https://www.cnblogs.com/dengchaojie/p/7486284.html
Copyright © 2011-2022 走看看