【发布时间】:2014-05-08 02:32:49
【问题描述】:
标题说明了自己。
这里是示例代码:
[stillImageOutput captureStillImageAsynchronouslyFromConnection:stillImageConnection
completionHandler:^(CMSampleBufferRef imageDataSampleBuffer, NSError *error) {
// TODO: bla bla bla
}
];
TODO 不会显示在 xcode 的方法列表中。
但是如果我将 TODO 移到方法上(这意味着:在块之外),它将正常显示。
// TODO: bla bla bla
[stillImageOutput captureStillImageAsynchronouslyFromConnection:stillImageConnection
completionHandler:^(CMSampleBufferRef imageDataSampleBuffer, NSError *error) {
// some codes
}
];
任何提示或解决方法? 提前致谢。
【问题讨论】: