views:

19

answers:

0

I have an NSMutableArray of UIImageViews that have been added as subviews of a particular view.

When I replace a view like this:

UIImageView *tempview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.png"]];
tempview.frame = CGRectMake(0, 0, 667, 920);
[drawViewController.drawImage replaceObjectAtIndex:0 withObject:tempview];

I can see that the view is replaced, but doesn't redraw. Occasionally, this will cause the application to become unresponsive. I've tried stepping through the functions, but that doesn't seem to help. I tried setNeedsDisplay but that doesn't seem to work either. Is there something else I'm missing?

EDIT: I have tried multiple ways of accessing this. Oddly, when I try and use one of these arrayed UIImageViews in an email message (using the standard Apple-way) it occasionally causes things to "refresh" to what they should be, but the UI becomes unresponsive or nonfunctional. I can tell that touch events continue to happen after this, although they are not being drawn on the UIImageViews. I would totally add reputation to this question if I could, but I don't know how. Does anyone know how to fix my problem?