Objective-c

  • , ,

    CSR生成参考サイト

    http://d.hatena.ne.jp/knaka20blue/20130218/1361164309

    続きを読む

  • ,

    UIView – viewDidLoadがinitWithNibnameより先に呼ばれるような気がしたら。。。

    UIViewの initializeで initが終了する前にあるいは先にviewDidLoadがよばれる気がしたら super classのinit内部でself.viewなどでviewにアクセスしていないかを確認. self.viewをよぶことによってsuper classのinitializerで viewDidLoadがよばれてしまう。

    続きを読む

  • Objective-C Animation Menu

    http://iosdevelopertips.com/open-source/ios-open-source-circular-rotating-menu.html

    続きを読む

  • ,

    [iOS] app url for itunes store

    To send customers to a specific application: http://itunes.com/apps/appname To send customers to a list of apps you have on the App Store: http://itunes.com/apps/developername To send customers to a specific app with your company name included in the URL: http://itunes.com/apps/developername/appname

    続きを読む

  • ,

    iOS Tips for beginner

    ネットサーフィングしながらかき集めたTIPS. いつか誰かの役に立つはず。(自分含む) Open an URL in Safari Hide the status bar Dial a Phone Number (iPhone Only) Launch the Apple Mail stop responding to touch events active the touch events Show the network Activity Indicator Hide the network Activity Indicator Prevents iPhone goes into sleep mode Display an alert window Get the path to the…

    続きを読む

  • ,

    objective-c underscore 変数の継承をもっと柔軟に

    ケース:親クラスと子クラスの間に同じ変数名で別のクラスを指定したいときunder score変数を利用 準備 変数となるクラス @interface SuperModel @interface SubModel : SuperModel 親クラス @interface SuperClass @property (nonatomic,retain) SuperModel* data; @implementation data = _data; 子クラス @interface SubClass : SuperClass { SubModel* _data; } @property (nonatomic,retain) id data; @implementation data = _data; これで子クラスの内部ではSubmodelとして_dataを扱えるようになる。

    続きを読む

  • ,

    Why use underscore instance value on xcode

    A lot of people use this for private variables, to differentiate between private variables and public variables within an object. It is a completely optional way of working. what you’re seeing is the use of underlines to distinguish between instance variables and properties. So a class declaration might be: @interface Foo { NSString* _label; ….…

    続きを読む