http://www.hirano-dept.com/blog/2011/01/iphone-uilabel.html
NSString *str = @"sample string";
CGSize size = [str
sizeWithFont:[UIFont boldSystemFontOfSize:13]
constrainedToSize:CGSizeMake(5…
iPhoneアプリに設置されているテーブルの背景色を変更する方法です。
//テーブルの背景色
self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
文字列の設定と同様に、以下のような記述も可能です。self.view.backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
graffiti on the web
この投稿へのコメント
コメントはまだありません。