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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -