0
我改變一個iPhone應用程序,UISegmentedControl:無法調用IOS方法5.0
當我改變分段鍵的值,
應該調用該方法,
- (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
謝謝你會嘗試.. – 2012-03-07 11:10:54