Skip to content

Instantly share code, notes, and snippets.

@Torokun
Torokun / iOS_4-2.md
Last active August 29, 2015 13:56
Chapter 4-2

Chapter 4-2

GUI部品

  • ラベル、ボタン、テキストフィールド、スイッチなどのGUI部品はUILabel、UIButton、UITextField、UISwitchといったクラスのインスタンスとして動作する
  • GUI部品はストーリーボードのキャンバスにドラッグ&ドロップで配置できる

アウトレットの接続

  • GUI部品をプログラム上から制御するにはアシスタントエディタを使ってヘッダファイルまたは実装ファイルの@interface@endの間にインターフェースセクションを接続する(CTRL+D&D)
@Torokun
Torokun / iOS_4-1.md
Last active August 29, 2015 13:56
Chapter 4-1

Chapter 4-1

Single View Applicationテンプレート

  • AppDelegate.h
  • AppDelegateクラスのヘッダファイル
  • AppDelegate.m
  • AppDelegateクラスの実装ファイル
  • ViewController.h
  • ViewControllerクラスのヘッダファイル
//
// ReederMacPatcherServiceFormController.h
// ReederMacPatcher
//
// Created by moyashi on 11/05/16.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>