标签: objective-c pointers appdelegate self
我试图指向应用程序委托中的核心数据堆栈,但出现“没有名为成员的成员”错误。
_coreDataStack = [[CoreDataStack alloc]init]; __weak SubclassOfApplication *weakSelf = self; SubclassOfApplication *strongSelf = weakSelf; Report *attributes = [strongSelf -> _coreDataStack];