ios - UIImage too many files while cloning UIImage Object -
ios - UIImage too many files while cloning UIImage Object -
i creating single uiimage based on image file using next code:
uiimage *myimage = [[uiimage alloc] initwithcontentsoffile:myimagepath];
i'm looping , adding myimage many objects containing uiimage property. results in me getting next error:
error = 24 (too many open files)
my question is, how clone uiimage without cloning file reference it. seems happening.
put line outside loop.
uiimage *myimage = [[uiimage alloc] initwithcontentsoffile:myimagepath];
ios uiimage clone
Comments
Post a Comment