objective c - Problem filling NSMutableArray w/ UIImage objects -


When trying to fill a NSMutableArray with UIImages is me issue one upset.

  CGBitmapInfo BitmapInfo = kCGBitmapByteOrderMask; CGColorRenderingIntent renderingIntent = kCGRenderingIntentDefault; CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB (); While (...) // & lt; --- changes through the data sets (Sijeeditaproverarf provider = Sijeediapiproidkretdetadeta (NULL, data, Numbaits, NULL); CGImageRef cImage = CGImageCreate (iw, Ih, 8, 32, 4 * iw, colorful place, Bitmapinfo, provider, zero No, rendering); UIImage * last Image = [UIImage imageWithCGImage: cImage]; [images addObject: finalimage]; // & lt; --- Bejenijeshn declared and immediately before [representatives: final Image]; CGImageRelease (cImage); CGDataProviderRelease (Provider);} CGColorSpaceRelease (colorSpace); [Representative operation complete: six With this: Picture];  

Similarly, I have a code going on. That's why I'm basically going to the statement when the bitmap gives the next set of data, then I makes a UIImage I keep my stores it in the volatile array.

I so each file accessed the disk and then result in the proper set of images. the problem is that the data in the memory The array is used for , Then when I reach any image object in the array, I get the same exact image. The image is always the last image of the set.

I have tried to test the content, by setting an array as a UIImageView animation array and using an NSTimer to run the content. Either way, it exceeds only one image (pulls the last image).

I am running this operation within a subclass NSOction object, so it does not block the interface. Here using Another interesting aspect is that when operation insert the images sent the images array was giving an array of I copy images I sendImage Message Tried and images were represented in a separate array inside the representative object (probably thinking that this was a threading issue) that gave me the same results.

I have not made any progress on this. I have never seen anything like this and I can not find any such person who had a similar issue. I would be happy to provide any additional information if someone thinks he will help solve this problem.

Anybody can provide any support that I would greatly appreciate.

Of course that's not the problem, but to inform their representatives of changes on probably the main thread Should not, there is no thread running on the basis of node.

  [Representative Display SelectoronMinethread: @Selector (sendImage :) withObject: finalImage waitUntilDone: Yes];  

And so for the last message if the representative is modifying anything related to UIKit, then it will be applied to the main thread!


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -