Programming

  • unityで出力されたiOSプロジェクトのSplash Image

    [現象] unityで出力されたiOSプロジェクトのSplash Imageの指定をLaunch Images Sourceで指定しても8.0以上で治らない件 [原因] 8.0以上ではLaunch Screen Fileの設定がされているとこちらの設定が優先される。 [対策] LaunchScreenImage-Portrait.png LaunchScreenImage-Landscape.png の設定もアップデート

    続きを読む

  • UILabel でテキストが更新されない時。

    [現象] サーバより非同期で取得したデータをLabelのテキストに入れたが きちんと更新が行われない。下記Warningがでる CoreAnimation: warning, deleted thread with uncommitted CATransaction [原因] 非同期で取得したためUIViewのanimationがメインスレッドで実行されないことが原因 [対策] メインスレッドで実行するように指定 [コード] //メインスレッドで実行 dispatch_async(dispatch_get_main_queue(), ^{ // Perform any drawing/UI updates here. self.currentBalance.text = [NSString stringWithFormat:@”%d”,(int) balance]; });

    続きを読む

  • ,

    How to reproduce bugs reported against App Store submissions

    https://developer.apple.com/library/ios/qa/qa1764/_index.html

    続きを読む

  • Javaで画面キャプチャ

    モニターサイズ取得 GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); Rectangle rect = env.getMaximumWindowBounds(); setBounds(rect); ` Robotを利用し画面キャプチャ 下記サイトより抜粋 http://d.hatena.ne.jp/hase5021/20130523/1369310250 /** * Robotによる画面キャプチャ * * @param path 出力先ファイルパス */ public static void alertCaptuer(String path) { // 取得する画面エリア Rectangle screenSize = new Rectangle(0, 0, 2560, 800); try { // java.awt.Robotの生成 Robot robot = new Robot(); // イメージを所定の場所に出力 ImageIO.write(robot.createScreenCapture(screenSize), “png”, new File(path)); }…

    続きを読む

  • ,

    Cakephp Containの代わりにbind trick

    続きを読む

  • Cocos 2d Map tutorial

    http://www.raywenderlich.com/29458/how-to-make-a-tile-based-game-with-cocos2d-2-x

    続きを読む

  • COCOS2d Tool List

    http://www.learn-cocos2d.com/tag/zwoptex/

    続きを読む

  • ,

    UIViewController receive message order

    see http://stackoverflow.com/questions/9539676/uiviewcontroller-returns-invalid-frame {{0, 0}, {768, 1004}} viewDidLoad {{0, 0}, {768, 1004}} shouldAutorotateToInterfaceOrientation: {{0, 0}, {768, 1004}} shouldAutorotateToInterfaceOrientation: {{0, 0}, {768, 1004}} viewWillAppear: {{0, 0}, {768, 1004}} shouldAutorotateToInterfaceOrientation: {{0, 0}, {768, 1004}} shouldAutorotateToInterfaceOrientation: {{0, 0}, {768, 1004}} willRotateToInterfaceOrientation:duration: {{0, 0}, {1024, 748}} viewWillLayoutSubviews {{0, 0}, {1024, 748}} layoutSubviews {{0, 0}, {1024, 748}} viewDidLayoutSubviews {{0, 0}, {1024,…

    続きを読む

  • ,

    iOS PEM CREATE COMMAND

    openssl pkcs12 -in xxx.p12 -out yyy.pem -nodes -clcerts

    続きを読む

  • ,

    PHP 5.5.9 Configure

    #/bin/sh ./configure –prefix=/usr –enable-maintainer-zts –with-pear \ –with-config-file-path=/etc –with-readline –with-mcrypt \ –with-zlib –enable-mbstring –with-curl –with-bz2 \ –enable-zip –enable-sockets –enable-sysvsem –enable-sysvshm \ –with-mhash –with-pcre-regex –with-gettext –enable-bcmath \ –enable-libxml –enable-json –with-openssl –enable-pcntl \ –with-mysql=mysqlnd \ –with-mysqli=mysqlnd \ –with-pdo-mysql=mysqlnd \ –with-apxs2=/usr/local/apache2/bin/apxs \ –enable-pdo

    続きを読む