iphone - UIImageView allocs with strange addresses -
iphone - UIImageView allocs with strange addresses -
i have 5 uiviews alloc same image.
after alloc appear kind of addresses:
[0] = 0x0000000117068650 [1] = 0x00000001151ea1c0 [2] = 0x00000001151a77f0 [3] = 0x00000001170026c0 [4] = 0x00000001151b5c40
this i'm doing
uiimage *image = [uiimage imagenamed:@"something.png"]; uiimageview *containers[5]; (int = 0;i < 5; i++) { containers[i] = [[uiimageview alloc] initwithimage:image]; containers[i].frame = cgrectmake(0,0, image.size.width, image.size.height); [self.view addsubview:containers[i]]; }
of course of study project much more complex how can happen? related how i'm declaring uiimageviews?
iphone memory-management
Comments
Post a Comment