Migration

Roland Moers edited this page Sep 17, 2017 · 7 revisions

This page will describe how to migrate from your current version of RMDateSelectionViewController to the latest version of RMDateSelectionViewController.

Version 2.3.1

This update disabled the blur effects for the background by default. If you want this blur effect to be enabled you need to set disableBlurEffectsForBackground to false.

Version 2.3.0

No migration required

Version 2.2.1

No migration required

Version 2.2.0

No migration required

Version 2.1.0

The definition of RMAction changed a little bit. Previously it looked like follows:

@interface RMAction<T : RMActionController<UIView *> *> : NSObject

To make RMDateSelectionViewController compatible with Swift 3 it changed to this definition:

@interface RMAction<T : UIView *> : NSObject

As you can see, RMActionController has been dropped from the generic type. Your code to initialize a RMAction instance for your RMDateSelectionViewController should look like one of the following two examples:

RMAction *selectAction = [RMAction<RMActionController<UIDatePicker *> *> actionWithTitle:@"Select" style:RMActionStyleDone andHandler:^(RMActionController<UIDatePicker *> *controller) {
    ...
}];

or

RMAction *selectAction = [RMAction<RMDateSelectionViewController *> actionWithTitle:@"Select" style:RMActionStyleDone andHandler:^(RMDateSelectionViewController *controller) {
    ...
}];

As RMDateSelectionViewController version 2.1.0 dropped RMActionController from the generic of RMAction, you need to drop that reference, too. So your new code should look like follows:

RMAction *selectAction = [RMAction<UIDatePicker *> actionWithTitle:@"Select" style:RMActionStyleDone andHandler:^(RMActionController<UIDatePicker *> *controller) {
    ...
}];

Version 2.0.3

No migration required

Version 2.0.2

No migration required

Version 2.0.1

No migration required

Versions prior to version 2.0

These versions are quite old and there shouldn't be anyone still using this version. So I'll skip the migration info here. If you need the migration info, drop me a mail.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.