0

UIView の init メソッドで self.frame.size.height を呼び出すと、結果として 0 が返されます。

UIView:

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        NSLog(@"Content,init: %f",self.frame.size.height);
...

UIView の作成:

m_content = [[Content alloc] init];
m_content.frame=self.frame;
4

1 に答える 1