参考になる。
Cellの再描画なるほど。
時々、Cellの中身を更新したので再描画させたい時があります。
これのやり方は、以下の記事が参考になりました。 Cellに対してsetNeedLayoutを送ればいいと。
Published on 2013年1月16日水曜日 Leave your thoughts »
|
|
Tweet |
参考になる。
Cellの再描画なるほど。
時々、Cellの中身を更新したので再描画させたい時があります。
これのやり方は、以下の記事が参考になりました。 Cellに対してsetNeedLayoutを送ればいいと。
This post is archived under UIKit, UITableView
Published on 2012年12月25日火曜日 Leave your thoughts »
|
|
Tweet |
こんな感じで悪くない。

あらかじめ用意した背景画像を使っている。フォントまで専用に用意されていた。

実装は UISearchBar のサブクラスを作り、サブビューとしてUIImageViewを貼りつけておく。
そして layoutSubviews をオーバーライドして UITextFieldを見つけ出し、表現をカスタマイズする。
- (void)layoutSubviews {
[self setShowsCancelButton:NO animated:NO];
UITextField *searchField;
NSUInteger numViews = [self.subviews count];
for(int i = 0; i < numViews; i++) {
if([[self.subviews objectAtIndex:i] isKindOfClass:[UITextField class]]) { //conform?
searchField = [self.subviews objectAtIndex:i];
}
}
[self bringSubviewToFront:searchField];
if(!(searchField == nil)) {
searchField.textColor = [self colorWithHex:0x8b909c];
searchField.font = [UIFont fontWithName:@"MyriadPro-It" size:18];
:
This post is archived under UIKit, UIカスタマイズ
Published on 2012年1月5日木曜日 Leave your thoughts »
|
|
Tweet |
Published on 2011年12月21日水曜日 Leave your thoughts »
|
|
Tweet |
Published on 2011年12月20日火曜日 Leave your thoughts »
|
|
Tweet |
Published on 2011年12月18日日曜日 Leave your thoughts »
|
|
Tweet |
これはいい。
addChildViewController: removeFromParentViewController transitionFromViewController:toViewController:duration:options:animations:completion: willMoveToParentViewController: didMoveToParentViewController:
This post is archived under iOS 5, UIKit