首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

为啥子uitextview的frame 输出 <UITextView: 0x91a4e00; frame = (0 0; 0 0)

2013-01-23 
为什么子uitextview的frame 输出 UITextView: 0x91a4e00 frame (0 0 0 0)想得到子视图(uitextview)的

为什么子uitextview的frame 输出 <UITextView: 0x91a4e00; frame = (0 0; 0 0)
想得到子视图(uitextview)的高度,但是总是输出0.000000

于是输出该uitextview的frame

cgrect rect = [[self.view viewwithtag:1] frame];
nslog(@"%@",rect);

然后就输出<UITextView: 0x91a4e00; frame = (0 0; 0 0)

为什么都是 0 呢?

谢谢
[解决办法]
如果你没给TEXTVIEW设置大小,那就自然为0了,你设置大小了吗?

热点排行