objective c - IMAGES Sometimes 0 KB And Black IOS -
i save images on
nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes); nsstring *documentsdirectory = [paths objectatindex:0]; nsstring *path = [documentsdirectory stringbyappendingpathcomponent:[self.data valueforkey:@"message"]];
but images loaded using haneke
nslog(@"%@",path); [self.contentimage hnk_setimagefromfile:path placeholder:nil success:^(uiimage *image) { } failure:^(nserror *error) {
}
, images becomes black sometimes...i guess path not correct path..what did u say?
edit:oh found image lenght bigger 0 68900 etc.but images black...!!!so there no wrong path
Comments
Post a Comment