Tabs

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

*

UIView

      2014/11/02


タイトル画面の背景など、新たにビューを追加した場合
UIViewを生成し self.view に addsubview する

// UIViewを生成
UIView *titleBg =[[UIView alloc] initWithFrame:CGRectMake(0,0,320,568)];
titleBg.backgroundColor = [UIColor colorWithWhite:0.5 alpha:1.0];
[self.view addSubview:titleBg];


 - Begin

  関連記事

eyechatch_xcode_tips-300x300
よく使うショートカット

Ctrl+6 : 表示中のクラスのメソッド一覧 さらにテキスト入力してインクリメ …

no image
CheatSheet

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

eyechatch_xcode_tips-300x300
UIButton 同時押し制御

UIButton *myBtn = [UIButton alloc] init] …

eyechatch_xcode_tips-300x300
.selected

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

eyechatch_xcode_tips-300x300
Xcode6 GameCenter 実装

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

no image
画面ローテーション

画面ローテーションを制御する場合は下記を追加する – (BOOL)s …

eyechatch_xcode_tips-300x300
transform中の座標取得

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

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

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

no image
UIImageView 画像の差し替え

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

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

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