万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

2014-02-22から1日間の記事一覧

cocos2d-xでのenumとswitchの書き方

class Player : public CCSprite { public: enum Direction { Left, Right, Up, Down }; }; のように定義しておくと、switchでは switch(_player->direction) { break; case Player::Right: { _player->initWithSpriteFrameName("Player_right_1.png"); } br…

TitaniumのWarning

TiUIScrollView: (main) [13262,356427] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction.

TitaniumのSQLでのreturnに注意

function hogeMethod() { hoge_table.map(function(res) { var message = res.get('message'); return message; }); }のようにreturnしても。hogeMethod自体がreturnされるのではなく、 hoge_table.map(function(res) {の部分を抜けるだけのようだ。 Titaniu…

Alloyの型

ログを見ると・・・ [INFO] : Adding "alloy_id" to uniquely identify rows [WARN] : "string" is not a valid sqlite field, using TEXT instead [WARN] : "date" is not a valid sqlite field, using TEXT instead [WARN] : "boolean" is not a valid sql…

Titaniumの変なエラー

メソッドをへらさないといけないの? [NSNull krollObjectForBridge:]: unrecognized selector sent to instanceURL: http://jazzguitar7.blog118.fc2.com/blog-entry-33.html

Titanium SDKのエラー(Titanium 3.2.1)

Titanium 3.2.1にしてから、iOSのシミュレータで起動しようとしたら、 ios sdk version 7.0 not found. titaniumのポップアップ https://developer.appcelerator.com/question/160722/updated-to-320-ios-7-sdk-not-found-among-many-other-broken-things ti…