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

trouble dismissing & presentInView function doesn't seem to do anything with the view arg #22

Open
edwardIshaq opened this issue Jun 10, 2016 · 1 comment

Comments

@edwardIshaq
Copy link

edwardIshaq commented Jun 10, 2016

-(void)presentInView:(UIView *)view withGravityAnimation:(BOOL)animation {
function doesn't seem to do much with the view argument.

Also i'm having issue with the taps. not seeing the block get executed on tap

  @IBAction func showNotifAction(sender: AnyObject) {
        let dumView = UIView(frame: CGRect(origin: CGPointZero, size: CGSize(width: 100, height: 100)))
        dumView.backgroundColor = UIColor.redColor()

        testNotifications(dumView)
    }

    func testNotifications(inView: UIView) {

        let note = AFDropdownNotification()
        note.titleText = "Test run"
        note.subtitleText = "something needs your attention"
        note.image = UIImage.stockPhoto()
        note.topButtonText = "ToP"
        note.bottomButtonText = "bUttom"
        note.isImageRounded = true
        note.dismissOnTap = true

        note.listenEventsWithBlock { (event: AFDropdownNotificationEvent) in
            note.dismissWithGravityAnimation(true)
            switch event {
            default:
                log(event)

            }
        }

        log(inView)
        note.presentInView(inView, withGravityAnimation: false)

        dispatchMainDelayed(delay: 3) {
            //note.dismissWithGravityAnimation(true)
        }


    }
}
@edwardIshaq edwardIshaq changed the title presentInView function doesn't seem to do anything with the view arg trouble dismissing & presentInView function doesn't seem to do anything with the view arg Jun 10, 2016
@RajChanchal
Copy link

Same issue with me too.

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

2 participants