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)); }…
-
Cocos 2d Map tutorial
http://www.raywenderlich.com/29458/how-to-make-a-tile-based-game-with-cocos2d-2-x
-
-
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