Objective-C I can access self.view but not self.view.frame

Posted by user292896 on Stack Overflow See other posts from Stack Overflow or by user292896
Published on 2010-03-28T02:22:21Z Indexed on 2010/03/28 2:23 UTC
Read the original article Hit count: 422

Filed under:
|

I can access and show self.view and see the frame in the log but when I try to access self.view.frame I get null. Below is the log output of

NSLog(@"Show self.view:%@",self.view);
NSLog(@"Show self.view.frame:%@",self.view.frame);

-

2010-03-28 11:08:43.373 vivmed_CD_Tab[20356:207] Show self.view:<UITableView: 0x4001600; frame = (0 0; 320 583); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0x3b21270>>

2010-03-28 11:08:43.373 vivmed_CD_Tab[20356:207] Show self.view.frame:(null)

Can anyone explain why self.view.frame is null but self.view shows a frame?

May Goal is to change the frame size.

Cheers, Grant

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about uiview