Comment Form is loading comments...
テスト用Page
スクリーンショットを自動でリサイズ
〜iOSアプリリリース〜

ドラッグアンドドロップで自動にリサイズ




My cat
My cat
My cat
My cat

This is primary text.

This is success text.

This is information text

This is warning text.

This is danger text

吾輩は猫である。名前はまだ無い。
ViewController.swift

import UIKit

class ViewController: UIViewController,CAAnimationDelegate {

    var myView:UIView!
    var btn:UIButton!

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        self.view.backgroundColor = .cyan

        //UIViewを作成
        myView = UIView()
        myView.frame = CGRect(x: 0, y: 0, width: 200, height: 200)
        myView.center = CGPoint(x: self.view.frame.midX, y: self.view.frame.midY)
        myView.backgroundColor = .white
        self.view.addSubview(myView)

        btn = UIButton()
        btn.frame = CGRect(x: self.view.frame.width/2, y: self.view.frame.height*0.7, width: 100, height: 50)
        btn.center = CGPoint(x: self.view.frame.width/2, y: self.view.frame.height*0.8)
        btn.setTitle("Button", for: .normal)
        btn.backgroundColor = UIColor.hex(hexStr: "4472c4")
        btn.addTarget(self, action: #selector(ViewController.btnAction), for: .touchUpInside)
        self.view.addSubview(btn)

    }

<< 前のページに戻る