我已經使用DCRoundSwitch來創建自定義開關,問題是我無法調用UIControlEventTouchUpInside事件,但只有UIControlEventValueChanged事件正在調用。無法調用DCRoundSwitch UIControlEventTouchUpInside事件
下面是我的代碼寫的viewDidLoad中:
self.swtchDailyReminder.on = YES;
self.swtchDailyReminder.onTintColor =[UIColor colorWithRed:47.0/255.0 green:160.0/255.0
blue:158.0/255.0 alpha:1.0];
[self.swtchDailyReminder addTarget:self action:@selector(switchDailyReminderToggled:)
forControlEvents:UIControlEventTouchUpInside];
在此先感謝。