xcode没有为我预填

时间:2012-05-31 19:31:29

标签: ios xcode compiler-construction autocomplete compiler-errors

我刚刚注意到xcode已不再为我预先填充了。比如我想写

CGRectMake (self.frame.size.width, ...);

Xcode没有预先填充.frame等。不仅如此,如果我写它,它会给我错误并告诉我

object 'frame' not found on...

我的意思是,这里究竟发生了什么?我写的代码没问题,编译也没问题。

有什么想法吗?

提前致谢!

1 个答案:

答案 0 :(得分:0)

也许它应该是self.view.frame