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

  関連記事

eyechatch_xcode_tips-300x300
UIButton 同時押し制御

UIButton *myBtn = [UIButton alloc] init] …

eyechatch_xcode_tips-300x300
負の数を絶対数へ変換 abs

負の数を自然数(マイナスを含まない数字)にしたくて、「Xcode 自然数 変換」 …

no image
ステータスバーを隠す方法

Deployment Info の Status Bar Style 下部にある …

eyechatch_xcode_tips-300x300
.selected

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

no image
UIView

タイトル画面の背景など、新たにビューを追加した場合 UIViewを生成し sel …

no image
乱数のこと

乱数(ランダムな数)を取り出す際 rand や arc4random を使用しま …

no image
UIViewを透明にする

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

no image
CheatSheet

Xcodeの便利なショートカットキー 良く使ってるなと感じたら追記 Cmd+Al …

no image
UIImageViewにボタンを貼りたい場合

タイトル画面などを作りたい場合、UIImageViewを使用して背景などを作るこ …

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

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