当我分析我的projetc,Xcode的分析找对象的一些潜在泄漏分配 但麻烦的是,我不知道这意味着什么,以及如何解决这个内存问题:对象的潜在泄漏分配
这里是我的文件的图片,
这里是代码
#import "RoundRect.h"
//
// NewPathWithRoundRect
//
// Creates a CGPathRect with a round rect of the given radius.
//
CGPathRef NewPathWithRoundRect(CGRect rect, CGFloat cornerRadius)
{
//
// Create the boundary path
//
CGMutablePathRef path = CGPathCreateMutable();
CGPathMoveToPoint(path, NULL,
rect.origin.x,
rect.origin.y + rect.size.height - cornerRadius);
// Top left corner
CGPathAddArcToPoint(path, NULL,
rect.origin.x,
rect.origin.y,
rect.origin.x + rect.size.width,
rect.origin.y,
cornerRadius);
// Top right corner
CGPathAddArcToPoint(path, NULL,
rect.origin.x + rect.size.width,
rect.origin.y,
rect.origin.x + rect.size.width,
rect.origin.y + rect.size.height,
cornerRadius);
// Bottom right corner
CGPathAddArcToPoint(path, NULL,
rect.origin.x + rect.size.width,
rect.origin.y + rect.size.height,
rect.origin.x,
rect.origin.y + rect.size.height,
cornerRadius);
// Bottom left corner
CGPathAddArcToPoint(path, NULL,
rect.origin.x,
rect.origin.y + rect.size.height,
rect.origin.x,
rect.origin.y,
cornerRadius);
// Close the path at the rounded rect
CGPathCloseSubpath(path);
return path;
}
钍为你提供非常有用的帮助。
PS:我的所有谟正常工作在iPhone模拟器 它是一个应用程序,用的TabBar和4段,两段都是空的, 和其他两个部分是tableview中的细节视图(数据从拍摄plist) 当我在我的设备上测试应用程序时,两个空白部分完美地工作,并且正确的两个tableview中的一个显示detailview,第二个tableview巫婆在模拟器中工作没有推动detailview, 让我发疯的是它今天上午工作正常
一个问题: 是一个plist受它所包含的数据的限制,我的意思是,如果有一个大的例子与500字典它的例子EMS,这可能会麻烦的应用程序的良好显示?
感谢
非常感谢我会尝试 – a3116b