【发布时间】:2017-11-23 09:40:02
【问题描述】:
这是我的情况:
BaseClass.m file
#import “BaseClass.h”
@class ClassOne
@interface ClassOne {
//Some properties
}
@end
@implementation ClassOne
//Some methods
@end
@implementation BaseClass
//Some props and methods here
@end
我想在我的 AppDelegate 中访问 ClassOne。由于没有 ClassOne 的头文件,我无法在 AppDelegate 中访问 ClassOne 的属性。 我怎样才能达到同样的效果?
【问题讨论】:
-
我不明白为什么人们在没有给出适当理由的情况下投反对票。 Stackoverflow 需要检查这种行为。
-
我同意,这是非常非常低的行为。
标签: ios objective-c iphone appdelegate