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];
関連記事
-
-
SNS連携
Twitter・Facebookとの連携は #import <Social …
-
-
よく使うショートカット
Ctrl+6 : 表示中のクラスのメソッド一覧 さらにテキスト入力してインクリメ …
-
-
iPhone画面サイズ
3.5inch 320 x 480px (Retina 640 x 960px) …
-
-
UILabelをコードで生成(Tips付)
Main Storyboard (IB)に用意されている Label を使わずに …
-
-
UIButton 同時押し制御
UIButton *myBtn = [UIButton alloc] init] …
-
-
BGM・SE 導入方法
音楽:導入方法 1… AVFoundationフレームワークを追加 2… hファ …
-
-
CheatSheet
Xcodeの便利なショートカットキー 良く使ってるなと感じたら追記 Cmd+Al …
-
-
UIImageViewにボタンを貼りたい場合
タイトル画面などを作りたい場合、UIImageViewを使用して背景などを作るこ …
-
-
NSLog まとめ
デバッグする時などに、ログを出力する方法としてNSLogを使用します。 文字列を …
-
-
.selected
インスタンス名.selected で BOOLを宣言せずにボタンのON/OFF状 …
- PREV
- CGAffineTransformIdentity
- NEXT
- アプリの名前をつける
