Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/40.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 标签未显示,图像未保存_Iphone_Ios_Objective C_Ios5_Ios4 - Fatal编程技术网

Iphone 标签未显示,图像未保存

Iphone 标签未显示,图像未保存,iphone,ios,objective-c,ios5,ios4,Iphone,Ios,Objective C,Ios5,Ios4,我已经在工具栏上创建了UILabels,但当我尝试在iOS 4.3版上使用它时,它并没有显示出来 当部署目标为6时显示标签,但当部署目标更改为4.3时,标签不起作用 及 我正在使用save按钮在iOS 4.3中保存图像,但出现错误ie image not saved(图像未保存)。 在iOS 5.0、5.5、6.0和6.1中,其工作正常 我使用这些代码来保存任何我正在使用的图像 UIImage *viewImage = [UIImage imageWithData:[NSData dataWi

我已经在工具栏上创建了UILabels,但当我尝试在iOS 4.3版上使用它时,它并没有显示出来

当部署目标为6时显示标签,但当部署目标更改为4.3时,标签不起作用

我正在使用save按钮在iOS 4.3中保存图像,但出现错误ie image not saved(图像未保存)。 在iOS 5.0、5.5、6.0和6.1中,其工作正常

我使用这些代码来保存任何我正在使用的图像

 UIImage *viewImage = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:self.imageURL]]];
NSLog(@"UIImage : %@",viewImage);
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];

[library writeImageToSavedPhotosAlbum:[viewImage CGImage] orientation:(ALAssetOrientation)[viewImage imageOrientation] completionBlock:^(NSURL *assetURL, NSError *error){

    if (error) {
        NSLog(@"error");
    } else {
        NSLog(@"URL IS  %@", assetURL);
        [self assignDictonary:viewImage withURL:assetURL withMediaType:@"public.image"];

    }
}];
    [library release];


有谁能建议我如何在工具栏上显示这些标签,并保存适用于iOS上所有版本的图像代码。。ie 4.3、5.0、5.1、6.0、6.1..

标签是在哪里创建的?我没有收到你的问题..将创建的UILabel代码放在工具栏上我拖放到工具栏上..然后检查你是否与文件所有者正确连接??
 dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,(unsigned long)NULL), ^(void) {
    UIImageWriteToSavedPhotosAlbum([UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:self.imageURL]]], self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
});