Comments (9)
I meant using the other flat date picker lib?
from rmdateselectionviewcontroller.
Which other date picker lib?
from rmdateselectionviewcontroller.
https://github.com/christopherney/FlatDatePicker
from rmdateselectionviewcontroller.
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...
from rmdateselectionviewcontroller.
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 ;)...
from rmdateselectionviewcontroller.
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 :)
from rmdateselectionviewcontroller.
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.
from rmdateselectionviewcontroller.
Also: Where does Utils come from? Is this an auxiliary class you wrote for yourself?
from rmdateselectionviewcontroller.
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]
from rmdateselectionviewcontroller.
Related Issues (20)
- Sometimes disappears offscreen HOT 5
- Date picker wheel not showing in iOS 8 iPhone HOT 7
- while scrolling HOT 5
- fatal error: unexpectedly found nil while unwrapping an Optional value HOT 2
- Getting wrong time HOT 2
- Dismiss parent view controller after picking the time HOT 2
- Readme is old & init doesn't work HOT 2
- White button text HOT 2
- RMAction problem on swift3 HOT 17
- Swift 3 multiple errors HOT 3
- set max date HOT 1
- Chartage Support? HOT 3
- In datetimepickermode, view goes outside the alert with style set as RMActionControllerStyleWhite HOT 2
- Change the font/size of the Title attribute? HOT 1
- Change font color HOT 1
- Date Selector Doesn't handle iOS 13 dark mode HOT 3
- I want only month and year column in date picker
- Xcode 12 display wrong HOT 3
- iOS 14/ Xcode 12 HOT 1
- iOS 14/ Xcode 12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmdateselectionviewcontroller.