Don't Release custom typ UIButton by yourself

Today I have found a code like this: app

UIButton *syncBtn = [UIButton buttonWithType:UIButtonTypeCustom];
...
[syncBtn release];



and Then when I run the app, whatever operation I do,the syncBtn will disappear.I have looked for this bug about 30 mibutes,at last I found the programmer release the button the reference only 1.

Oh shit! this

相關文章
相關標籤/搜索