1. First paragraph of the Code
__block typeof(self) tmpself = self ; [TableView addlegendheaderwithrefreshingblock:^() { [tmpself initdata:no]; }];
Write the time did not pay much attention, the back of the test when found every push to this page memory is constantly increasing, and more regular, consider the memory leaks, with static and dynamic analysis did not find
Memory leaks, but the memory is constantly growing, the next thought is not released, the breakpoint under the dealloc found really did not execute, and then a variety of inspection agent to see the wood has a circular reference, a circle to look down
My Special Agent basic use of weak decoration is not likely to follow the circular reference, there is no way to only comment on the viewdidload function of the various methods, finally found the problem, is the above code, sense
Feel good pit, later write code or serious point, this error is very silent, it is difficult to find this problem, hope that will not make such a mistake.
2. The correct wording
typeof (self) tmpself = self ; [TableView addlegendheaderwithrefreshingblock:^() { [tmpself initdata:no]; }];
A small hole in the use of IOS block