Tabs

iPhone&Androidのアプリ制作・デザイン

*

CGAffineTransformIdentity

      2014/11/21


アフィン変換がされたビューを,初期状態(アフィン変換がされていない状態)に戻す

// Viewのサイズをx方向に1.5倍、y方向に1.5倍
myView.transform = CCAffineTranceformMakeScale(1.5, 1.5);
// アフィン変換の解除(初期化)
myView.transform = CGAffineTransformIdentity;


 - Begin

  関連記事

no image
iPhone画面サイズ

3.5inch 320 x 480px (Retina 640 x 960px) …

no image
UILabelをコードで生成(Tips付)

Main Storyboard (IB)に用意されている Label を使わずに …

no image
for文の便利な使い方

for文を使って繰り返し実行させる場合、基本的には数値を使ってループさせます。 …

eyechatch_xcode_tips-300x300
ボタンに画像(背景)を指定する

// ボタンのサイズを指定する UIButton *startBtn = [[U …

eyechatch_xcode_tips-300x300
.selected

インスタンス名.selected で BOOLを宣言せずにボタンのON/OFF状 …

eyechatch_xcode_tips-300x300
UIButton 同時押し制御

UIButton *myBtn = [UIButton alloc] init] …

no image
UIImageView 画像の差し替え

[UIImageView alloc] 後の画像を変換する時は下記コードを参照し …

eyechatch_xcode_tips-300x300
Xcode6 GameCenter 実装

Xcode6(iOS7以上)でのGameCenter実装 検索であまり見つからな …

eyechatch_xcode_tips-300x300
transform中の座標取得

CGAffineTransformを使用して画像を変化させている最中の座標取得方 …

no image
UIViewを透明にする

// opaque属性にNOを設定する事で、背景透過を許可する。 UIView …