これをViewControllerのビューのコードで動作させようとしています:
しかし、私はそれを機能させることができません。
私はもう試した
-(void)loadView {
UIView *contentView = [[[UIView alloc] init] autorelease];
self.view = contentView;
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(5,5,0,100);
button.autoresizingMask = UIViewAutoresizingFlexibleWidth;
[contentView addSubview:button];
}
しかし、ボタンの幅はまだスーパービューの幅です...
簡単な説明があると安心です。
ありがとう、みんな!
アントニオ