I’m a newbie trying to figure out a memory leak problem. Does anyone see anything wrong with the following code?
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.navigationController.navigationBar setTintColor:[UIColor colorWithRed:0.10 green:.20 blue:0.30 alpha:1]];
}
In case it helps, Instruments shows the leaked block with the following info…
Event Type: Malloc
Responsible Library: CoreGraphics
Responsible Caller: CGTypeCreateInstanceWithAllocator
Any help would be greatly appreciated. (I’m still very new, so please explain in as much detail as possible.)
Much thanks!
Bit of a long shot but I’m not sure if it was just a bug in my project or not but I had a similar issue once when setting
tintColorinviewWillAppear. I ended up adding annilcheck before assigning the color again and this cleared it up for me (I didn’t do any further investigation into it so I could be wrong).