LoginSignup
2

More than 5 years have passed since last update.

Viewを丸くする

Last updated at Posted at 2015-04-08

正方形の場合、setCornerRadius に辺の長さの半分を渡す。

[view.layer setCornerRadius:CGRectGetWidth(view.frame) * 0.5f];

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
2