2013-05-01から1ヶ月間の記事一覧

error: PCH file built from a different branch ((clang-425.0.27)) than the compiler ((clang-425.0.28)) とエラーがでる

xcodeのバージョンを上げるとコンパイラのバージョンが古いからかエラーがでる。 そんな時はクリーンビルドが必要となる。 メニューバーのProduct>Cleanを実行したあとに、再度Runを実行すると問題なく起動できる

xcodeが生成するsenderとは

xcodeで開発していると、senderという言葉がでてきます。 下記はストーリーボードから〜.hのインターフェースファイルにスイッチのパーツのアクション定義を追加した際に自動生成されます。 - (IBAction)switchChange:(id)sender; // switchChangeは自分でつ…

@propertyの正体

アイフォンアプリ開発をしていると、@propertyという記載をよくみる。 ------------------------------------------------------------------------------------------------ @interface ViewController : UIViewController<UIActionSheetDelegate,UIImagePickerControllerDelegate, UINavigationControllerDelegate>{ } @property (weak, nonatomic) </uiactionsheetdelegate,uiimagepickercontrollerdelegate,>…