2018-08-17から1日間の記事一覧

CGRect を for 文で・・・

配列の中身が CGRect で、for 文の中で要素を取り出す際の話。 for ( CGRect rect in arrayHoge )このようにすると、次のエラーになる。Used type 'CGRect' (aka 'struct CGRect') where arithmetic or pointer type is required しょうがないので、魔法の i…