即时通讯工作在旧代码上,并且我有这个警告消息: 通过值结构参数包含未初始化的数据(例如,通过字段链:'origin.x')。如果我能得到穹顶帮助我将非常感激:)使用内存泄漏警告返回
代码IM:
- (void)positionScroller
{
CGRect screenFrame = [[UIScreen mainScreen] bounds];
CGRect scrollerRect;
if(self.interfaceOrientation == UIInterfaceOrientationPortrait || self.interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)
{
scrollerRect = CGRectMake(0, 0, screenFrame.size.width, screenFrame.size.height);
}
else if(self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft || self.interfaceOrientation == UIInterfaceOrientationLandscapeRight)
{
scrollerRect = CGRectMake(0, 0, screenFrame.size.height, screenFrame.size.width);
}
_scroller.frame = scrollerRect; <---This is where the compiler gives the warning
}
问候。
...以及如何定义_scroller? – 2012-01-29 15:45:09