Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i am tried to open in klcpopup when tap the object in tableviewcell #57

Open
HariNarayanan777 opened this issue Jun 21, 2016 · 1 comment

Comments

@HariNarayanan777
Copy link

HariNarayanan777 commented Jun 21, 2016

i am tried to open in klcpopup when tap the tableviewcell object, its opening well but what happening was its open how many times i click on that object that much times the popup was opened, I am using tap gesture for that to open. Below are my codes,

UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)]; singleTap.numberOfTapsRequired = 1; [dot setUserInteractionEnabled:YES]; dot.tag=i; [dot addGestureRecognizer:singleTap];
and in selector:
`
- (void)tapDetected:(UITapGestureRecognizer *)recognizer {

    NSLog(@"single Tap on imageview: %ld",recognizer.view.tag);

    Buypopklc* myViewObject = [[[NSBundle mainBundle] loadNibNamed:@"Buypopklc" owner:self options:nil] objectAtIndex:0];

    myViewObject.delegate=self;

    [myViewObject updatecontrols:selectedlead];

    KLCPopupLayout layout =   KLCPopupLayoutMake((KLCPopupHorizontalLayout)KLCPopupHorizontalLayoutCenter,
                                               (KLCPopupVerticalLayout)KLCPopupVerticalLayoutCenter);

    popuptype = [KLCPopup popupWithContentView:myViewObject
                                      showType:    (KLCPopupShowType)KLCPopupShowTypeBounceInFromBottom
                                   dismissType:(KLCPopupDismissType)KLCPopupDismissTypeBounceOutToBottom
                                      maskType:(KLCPopupMaskType)KLCPopupMaskTypeDimmed
                      dismissOnBackgroundTouch:YES
                         dismissOnContentTouch:NO];

    [popuptype showWithLayout:layout];

}`
here buypopklc was my xib file, hope you will understand please help me to solve this issue.

@HariNarayanan777
Copy link
Author

please help how to stop the popup to open multiple times

@HariNarayanan777 HariNarayanan777 changed the title i am tried to open in klcpopup when tap the tableviewcell i am tried to open in klcpopup when tap the object in tableviewcell Jun 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant