Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

[iOS 8] Pan gesture swallowed by DIDatePickerDateView? #7

Open
martinjo opened this issue Sep 19, 2014 · 2 comments
Open

[iOS 8] Pan gesture swallowed by DIDatePickerDateView? #7

martinjo opened this issue Sep 19, 2014 · 2 comments

Comments

@martinjo
Copy link

Seems something changed with iOS 8. When compiling with the new SDK my dates won't scroll if the gesture is started inside one of the "date sub views".

Has anyone else seen this?

@almaskz
Copy link

almaskz commented Oct 16, 2015

// yes I had the same problem, what i did is I introduced scroll view and added DIDatePicker as its subview code bellow. NOTE: will need to set contentSize for scroll view manually
@IBOutlet weak var dateView: UIView! // ui to add DIDatePicker as a subview to it
@IBOutlet weak var scrollView: UIScrollView! // extra addition to get the scrolling effect when used inside table view
let datePicker = DIDatepicker(frame: self.dateView.frame)
self.scrollView.addSubview(datePicker) // will need to set contentSize for scroll view manually

@johndpope
Copy link

Depending on your use case - I think it's related to the auto resizing to fit the width.
This fixed issue for me.

- (void)setupViews
{
 //   self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
    self.backgroundColor = [UIColor whiteColor];
    self.bottomLineColor = [UIColor colorWithWhite:0.816 alpha:1.000];
    self.selectedDateBottomLineColor = self.tintColor;
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants