bhags
-
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,…
-
-
Shell Script Tips
http://qiita.com/m-yamashita/items/889c116b92dc0bf4ea7d?utm_source=Qiita%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9&utm_campaign=11be167372-Qiita_newsletter_143_11_02_2015&utm_medium=email&utm_term=0_e44feaa081-11be167372-32851157