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
ステータスバーを隠す方法

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

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

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

eyechatch_xcode_tips-300x300
.selected

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

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

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

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

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

no image
CGAffineTransformIdentity

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

no image
乱数のこと

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

eyechatch_xcode_tips-300x300
Xcode6 GameCenter 実装

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

no image
NSLog まとめ

デバッグする時などに、ログを出力する方法としてNSLogを使用します。 文字列を …