自分のView Controllerでスワイプされたボタンアクションを作成したUIViewクラスがあります。PopUpView .PopUpを作成しました。右または左のアクションこのpopUpViewボタンで。UIViewControllerでボタンアクションが呼び出されない
-(void)rightClickAction{
CGPoint finishPoint = CGPointMake(600, self.center.y);
[UIView animateWithDuration:0.3
animations:^{
self.center = finishPoint;
self.transform = CGAffineTransformMakeRotation(1);
}completion:^(BOOL complete){
[self removeFromSuperview];
}];
[delegate cardSwipedRight:self];
NSLog(@"YES");
}
-(void)leftClickAction{
CGPoint finishPoint = CGPointMake(-600, self.center.y);
[UIView animateWithDuration:0.3
animations:^{
self.center = finishPoint;
self.transform = CGAffineTransformMakeRotation(-1);
}completion:^(BOOL complete){
[self removeFromSuperview];
}];
[delegate cardSwipedLeft:self];
NSLog(@"NO");
}
私はそれが動作していない
-(IbAction)actionYes{
[draggableView rightClickAction];
}
-(IBAction)actionNo{
}
で私のViewControllerそれを呼び出すために何をすべきかを持っています。
これをどのように達成できますか?
popUpViewボタンとアクションの接続を設定しました? –
デバッグブレークポイントを設定すると、あなたはアイデアを得るでしょう –
私はそれが働いていない.. – Nivesh