0

假设我有以下课程

@implementation userSetUp{
    NSString *folderIdentification;
}

-(id) initWithDriveService:(GTLRDriveService *)driveService withFilePath: (NSString *)aFilePath{
 folderIdentification = some string
 }
end

现在我在同一个类中有另一个方法,但是即使我在类的初始化方法中定义了它,folderIdentification 也会返回 null。有人可以告诉我应该如何定义 folderIdentification 以便我可以获得在 swift 和 java 中找到的相同实例行为,并且 reuploadToFolder 中的 folderIdentification 不返回 null 吗?

-(void )reuploadToFolder{
 folderIdentification is used but for some reason is nill.
 }
4

0 回答 0