hubdog's blog
Blocks中有界面删除操作的时候
Submitted by hubdog on Sun, 2014-02-09 01:41在blocks里面做了一个删除的动作,结果内存coredump了.
http://stackoverflow.com/questions/7838442/using-block-callbacks-to-the-...
解决办法就是用一个弱引用,而不是retain self.
__weak id weakSelf = self;
[operation setCompletionBlockWithSuccess:^(KxSMBOperation *operation) {
//[self performSelectorOnMainThread: @selector(finishTask) withObject: nil waitUntilDone: NO];
if (weakSelf)
[weakSelf finishTask];
} failure:^(KxSMBOperation *operation, NSError *error) {
if (!operation.isCancelled)
{
if (weakSelf)
写越狱程序
Submitted by hubdog on Thu, 2014-02-06 11:49configure generates .infig.status: error: cannot find input file:
Submitted by hubdog on Mon, 2014-01-27 22:45http://joe-turner.net/2010/05/11/configure-generates-infig-status-error-...
Linux上换行符号跟Windows不一样会导致很多类似的问题.
升级AFNetworking到2.0
Submitted by hubdog on Sun, 2014-01-26 18:00据说比默认的D2D和GDI+性能要好的FMX画布
Submitted by hubdog on Sun, 2014-01-26 11:32CentOS上安装gcc4.7.2
Submitted by hubdog on Wed, 2014-01-22 14:07Delphi Mobile中使用SQLite的例子
Submitted by hubdog on Sun, 2014-01-12 20:37http://docwiki.embarcadero.com/RADStudio/XE5/en/Mobile_Tutorial:_Using_SQLite_(iOS_and_Android)
HEVC测试序列
Submitted by hubdog on Fri, 2013-12-27 18:11莫名其妙的磁盘空间消失
Submitted by hubdog on Sat, 2013-12-07 12:12Ubuntu上突然硬盘空间少了20G,用disk usage analyzer 看不到是什么文件占用了空间.
sudo rm ~/.xsession-errors.old