Archive for 6月, 2012

 

segue セグエ | ios

6月 16th, 2012

segue セグエ 切れ目無く続くこと、滑らかに進行。 storyboardの連結部 seque セグウェイ、あの乗り物

Read full article | コメントは受け付けていません。

property設定時のパラメーターの英語の意味 | objective c

6月 15th, 2012

retain : 保つ copy : 写す、複製 assign : 割り当てる nonatomic : 原子でない。 [ atomic : 原子、(分割出来ない)] strong : 強い weak : 弱い メモ strongの参照を持つプロパティは、viewDidUnloadで = nil;する。

Read full article | コメントは受け付けていません。

ストーリーボード | iOS

6月 13th, 2012

2つ目のiOSアプリケーション:ストーリーボード https://developer.apple.com/jp/devcenter/ios/library/documentation/SecondiOSAppTutorial.pdf https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011318 これをやってみる。

Read full article | コメントは受け付けていません。

UILabel の位置を変更

6月 12th, 2012

CGRect frame = priceLabel.frame; frame.origin.y = titleHeight+20; priceLabel.frame = frame; origin.x origin.yを変更すると変わる。

Read full article | コメントは受け付けていません。

UILabel sizeToFit | ios

6月 12th, 2012

lines : 0 linebreak : word wrap で titleLabel.text = @”あああああああああああああああああ”; CGRect frame = titleLabel.frame; frame.size.width=305; titleLabel.frame = frame; [titleLabel sizeToFit]; 幅を固定しておくことも重要なようです。 で文字数に合わせて高さが変わってくれました。

Read full article | コメントは受け付けていません。

Error : Cannot load from mysql.proc. The table is probably corrupted | mysql

6月 11th, 2012

Error : Cannot load from mysql.proc. The table is probably corrupted こんなエラー。 mysqlのバージョンが違うようで、バックアップしたデータをそのまま入れたので変更が必要 mysql_upgradeしてみる。 $ sudo mysql_upgrade –datadir=/home/simpleblog/data/my/data > mysqllog mysql_upgrade: the ‘–datadir’ option is always ignored datadirが使えないので $ sudo mysql_upgrade -P 50999 -h 127.0.0.1 > mysqllog にしたらOKでした。 Looking for ‘mysql’ as: mysql Looking for ‘mysqlcheck’ as: mysqlcheck Running ‘mysqlcheck’ with connection arguments: ‘–port=50531′ ‘–host=127.0.0.1′ […]

Read full article | コメントは受け付けていません。

macport tree

6月 7th, 2012

$ sudo port install tree

Read full article | コメントは受け付けていません。

objective-cでjsonを利用SBJson (aka json-framework)

6月 7th, 2012

http://stig.github.com/json-framework/api/3.0/index.html https://github.com/stig/json-framework/ 1. gitで取得 $ git clone https://github.com/stig/json-framework.git sbjson 2.classesの中のファイルをprojectに追加。 https://github.com/stig/json-framework/blob/master/INSTALL.md *.h *.m をすべてプロジェクトディレクトリにコピーして追加 3.利用するファイルにヘッダーを追加 #import “SBJson.h” コンパイルエラー SBJsonStreamParser.h:105: error: expected a property attribute before ‘unsafe_unretained’ こんな感じ http://stackoverflow.com/questions/7867983/cant-compiler-json-framework 意味が分からないのであまり良くないとは思うがデフォルト設定を変えてみるが、解決せず。 とりあえずxcodeのバージョンを最新にしてみるか 同様のエラーで、いくつか解決策のようなものもありましたが 結局。 SBJson関連ファイルがいくつか抜けていただけでした。 何も設定しなくても問題なく動きました。 os 1.7.4 xcode 4.3.2

Read full article | コメントは受け付けていません。