Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 在另一个图像中绘制图像';无法在iOS设备上工作_Iphone_Objective C_Ios_Uiimage - Fatal编程技术网

Iphone 在另一个图像中绘制图像';无法在iOS设备上工作

Iphone 在另一个图像中绘制图像';无法在iOS设备上工作,iphone,objective-c,ios,uiimage,Iphone,Objective C,Ios,Uiimage,我需要你的帮助在iOS上的另一个图像中绘制图像。目前,我使用以下代码: UIImage* finalimage = [self drawImage:ECAImage inImage:finalimage atPoint:ECALocation]; 我的职能: -(UIImage*) drawImage:(UIImage*) fgImage inImage:(UIImage*) bgImage atPoint:(CGPoint) point { UIGraphicsBeginImag

我需要你的帮助在iOS上的另一个图像中绘制图像。目前,我使用以下代码:

UIImage* finalimage = [self drawImage:ECAImage inImage:finalimage atPoint:ECALocation]; 
我的职能:

-(UIImage*) drawImage:(UIImage*) fgImage inImage:(UIImage*) bgImage atPoint:(CGPoint)  point
{
    UIGraphicsBeginImageContextWithOptions(bgImage.size, FALSE, 0.0);
    [bgImage drawInRect:CGRectMake( 0, 0, bgImage.size.width, bgImage.size.height)];
    [fgImage drawInRect:CGRectMake( point.x, point.y, fgImage.size.width, fgImage.size.height)];
    UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();

    return newImage;
}
此代码适用于iPhone 5.0模拟器,但不适用于我的设备iPhone 5.0.1。
我可以显示bgImage,但fgImage未绘制。有什么想法吗?

检查正在加载的前景图像。我的sim卡有问题,因为它只有在底层文件系统区分大小写时才区分大小写,所以对于大多数人来说,它可以容忍文件名中的大小写不匹配,而设备总是区分大小写

[旁白] 我现在运行一个区分大小写的文件系统。这让我在提交应用商店时遇到了巨大的问题,但那是另一回事