【发布时间】:2012-03-07 11:01:35
【问题描述】:
我正在修改一个 iPhone 应用,
当我改变分段按钮的值时,
它应该调用方法,
- (void) setSelectedSegmentIndex:(NSInteger)index
我在我的自定义类中覆盖了它。
没有与段关联的 IBAction。
在 ios 4.3 中它被调用。 但是,在 ios 5.0 中它不会被调用。
这是它的 ResultUnitSwitch.h 文件
@interface ResultUnitSwitch : UISegmentedControl {
id <ResultUnitDelegate> delegate;
MCUnit *activeUnit;
NSArray *units;
}
There is a method call stack for ios 4.3
那么,为什么它在 ios 4.3 而不是同一项目的 ios 5.0 中被调用,是否有任何改变是 UISegmentedControl
【问题讨论】:
标签: iphone objective-c xcode ios5 ios4