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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -