この質問は本当に古くなっていますが、解決策が見つかったので、私はこれにも答えるべきだと思います。
セルのContentViewのサイズが変更され、確認ボタンが表示されます。セルに直接追加するのではなく、cell.contentViewにビュー(ラベル、イメージビューなど)を追加しないと、contentViewのサイズ変更時にサイズ変更されません。私の場合、私はそれを細胞に直接加えていました。
ので、代わりのようなもので行うので:あなたがすべき
UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, width-10, 20)];
[nameLabel setFont:[UIFont boldSystemFontOfSize:16]];
[nameLabel setHighlightedTextColor:[UIColor whiteColor]];
[nameLabel setAutoresizingMask:UIViewAutoresizingFlexibleWidth];
[nameLabel setTag:101];
[cell addSubview:nameLabel];
[nameLabel release];
:
UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, width-10, 20)];
[nameLabel setFont:[UIFont boldSystemFontOfSize:16]];
[nameLabel setHighlightedTextColor:[UIColor whiteColor]];
[nameLabel setAutoresizingMask:UIViewAutoresizingFlexibleWidth];
[nameLabel setTag:101];
[[cell contentView] addSubview:nameLabel]; // <<--- note the change in this line!
[nameLabel release];
希望を、これは、この問題つまずく他の人を助けます。
UIViewAutoresizingFlexibleLeftMarginが機能しませんが、UIViewAutoresizingFlexibleWidthは機能しません。 – derpoliuk