1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Swift備忘録

Last updated at Posted at 2018-01-24

#はじめに
ただの私のための備忘録です。参考にならないと思います。
過度な期待はしないでください。

#環境
Xcode9.2

#今回の備忘録

##フォーマット

String(format: "桁数指定", ○)  //○に値を入れる

##三項演算子

(条件式) ? (条件式がtrueの場合) : (条件式がfalseの場合)

##画像を回転させる

let angle: CGFloat = CGFloat(○) //回転角度を指定、○の中に数値を入れる
○○.transform =  CGAffineTransform(rotationAngle: angle)  //回転用のアフィン行列を作成、〇〇の中に画像の名前を入れる
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?