2009-07-05から1日間の記事一覧
iphone sdkの教科書を読んでいて、 p230のアニメーション、 [UIView beginAnimation:nil content:nil]; だとエラーになる(動くけどアニメーションしない)ので、 [UIView beginAnimation:nil]; としたらちゃんとアニメーションした。(warning: 'UIView' may…
i++; myButton.frame = CGRectMake( x, y, width, height + i );高さがどんどん大きくなるボタン。
myString = @"hoge"; [myButton setTitle: myString forState:UIControlStateNormal];UIButtonの表示名を動的に変えたいとき。
[NSString stringWithFormat:@"%d", myInt] --- NSString *myString; myString = [NSString stringWithFormat: @Your score is "%d", 20; NSLog (myString);intからStringに変換。objective-c