UITextView memory leak
Can somebody can please verify that they can also reproduce that memory leak.
Create a new "Utility Application". Open the FlipsideView.xib and add a UITextview. Using the inspector, uncheck "Editable" and check "Detects Phone Number" and "Detects Links".
Run the ap开发者_运维百科p using the Leak instrument on an iPhone. Flip between the MainView and the FlipsideView a few times and observe the leak.
Thanks
I'm using 3.1.2
Your leak seems to be somewhere else, i tried what you say and no leaks show up when im using 3.1.2 . However, i must add i did not connect the uitextview with IBOutlet as you did not mention it. If you are using
@property(nonatomic,retain) IBOutlet UITextView *....
it may cause a leak if you do not release your IBOutlet in dealloc.
Make sure you run Leaks against a real device, and not the simulator. I've found in the past that leaks were reported running my app against the simulator, but when I ran against a real device, those reported leaks went away.
精彩评论