5

我在 Xcode 控制台中使用 po 命令来检查一些需要的信息。所以在我使用后po vc我有这个:

(lldb) po vc
error: field '__FuncPtr' declared with incompatible types in different translation units ('void (*)(id)' vs. 'void (*)()')
error: instance variable '_afterAppearance' declared with incompatible types in different translation units ('__block_literal_generic *' vs. '__block_literal_generic *')
note: declared here with type 'void (*)()'
note: declared here with type '__block_literal_generic *'
error: 2 errors parsing expression

po vc 这是我的 UIViewController。我在初始化后在这段代码中检查了它:

+ (MyVC *)_new; {

    MyVC *vc = [[MyVC alloc] initWithNibName:nil bundle:nil];
    return vc;
}
4

0 回答 0