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

ios 6 support? #4

Closed
uschen opened this issue Nov 3, 2013 · 9 comments
Closed

ios 6 support? #4

uschen opened this issue Nov 3, 2013 · 9 comments

Comments

@uschen
Copy link

uschen commented Nov 3, 2013

No description provided.

@uschen
Copy link
Author

uschen commented Nov 3, 2013

I meant using the other flat date picker lib?

@CooperRS
Copy link
Owner

CooperRS commented Nov 3, 2013

Which other date picker lib?

@uschen
Copy link
Author

uschen commented Nov 4, 2013

@CooperRS
Copy link
Owner

CooperRS commented Nov 4, 2013

I'll think about it. But I decided to only support iOS 7 because the users of iOS 6 are already below 50% and they will continue to decrease. Thus, I thought that writing new code for a deprecated operating system probably wasn't a good idea and that I should spend my time completing other tasks...

@CooperRS
Copy link
Owner

CooperRS commented Nov 7, 2013

Thought about it and concluded, that I will stay iOS 7 only (at least for the moment). The main reason is, that I am going to add more features only supported on iOS 7 like motion effects, dynamics and blur effects and that I do not want to add compatibility code to disable these features on iOS 6.

Nevertheless, it is always possible for you to fork my project and add iOS 6 support ;)...

@CooperRS CooperRS closed this as completed Nov 7, 2013
@sshahidaslamm
Copy link

If you want to run it for iOS 6, you do the following it will work

Just change method "showDateSelectionViewController" in Library:
Change following lines of code :

[UIView animateWithDuration:duration delay:0 usingSpringWithDamping:damping initialSpringVelocity:1 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
aViewController.backgroundView.alpha = 1;
[rootViewController.view layoutIfNeeded];
}completion:^(BOOL finished) { }];

To this :

if ([Utils systemVersionGreaterThanOrEqualTo:@"7.0"])
{
[UIView animateWithDuration:duration delay:0 usingSpringWithDamping:damping initialSpringVelocity:1 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
aViewController.backgroundView.alpha = 1;
[rootViewController.view layoutIfNeeded];
}
completion:^(BOOL finished) { }];
}else{
aViewController.backgroundView.alpha = 1;
[rootViewController.view layoutIfNeeded];
}

It will work :)

@CooperRS
Copy link
Owner

I could do this. But then the design is kind of ugly as the UIPickerView/UIDatePicker of iOS 6 does not really fit into the rest of the design.

Nevertheless: Thanks for your suggestion :). It will help anyone who wants to use this control under iOS 6.

@CooperRS
Copy link
Owner

Also: Where does Utils come from? Is this an auxiliary class you wrote for yourself?

@sshahidaslamm
Copy link

Yes you are right about the UI, but it may be help full for others.
Yes i am using class methods, basically it do the following

[[[UIDevice currentDevice] systemVersion] compare:7.0 options:NSNumericSearch]

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

No branches or pull requests

3 participants