2020-05-03から1日間の記事一覧

GoogleDrive API

SwiftのGoogleDrive APIでディレクトリを作成する。 - プログラムを書こう!

UIImageViewの表示サイズを指定

//UIImageをivに変換 let iv:UIImageView = UIImageView(image:img) //サイズを変更 let rect:CGRect = CGRect(x:0, y:0, width:300, height:400) iv.frame = rect //変換したivをviewに追加 self.view.addSubview(iv) UIImageView 画像を拡大縮小させる