0

我正在尝试对涉及添加附加部分的 iOS7 控制中心进行调整。所以我想创建子类SBControlCenterSectionViewController但我得到链接器错误

Undefined symbols for architecture armv7s:
  "_OBJC_METACLASS_$_SBControlCenterSectionViewController", referenced from:
  "_OBJC_CLASS_$_SBControlCenterSectionViewController", referenced from:

据我了解,这是因为我没有实现 SB 私有框架(只有标头),但是有没有办法制作 SBControlCenterSectionViewController 的子类?

4

1 回答 1

1
%subclass MySubclass: SBControlCenterSectionViewController

- (void)anExistingMethodInSuperclass
{
    //...
}

%new
- (void)aNewMethodInSubclass
{
    //...
}

%end
于 2014-02-13T06:02:19.040 回答