ios - Cannot get image and no visible interface -
when use saving code error @ interface
"secondviewcontroller"
decalres selector getcachedirectorypath
. used
@interface getcachedirectorypath : uiimagepickercontroller
in .h file. below .m file
-(uiimage *)getimagefromcachewithname:(nsstring *)name {nsstring *_imagepath =[nsstring stringwithformat:@"%@/%@.png",[self getcachedirectorypath],name]; if([[nsfilemanager defaultmanager]fileexistsatpath:_imagepath]) {uiimage *_image =[uiimage imagewithcontentsoffile:_imagepath]; return _image; } return nil;
Comments
Post a Comment