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

Fixed the MvxSimpleTableViewSource; now can work with both storyboard and xib-cells #3314

Merged
merged 1 commit into from
Mar 12, 2019

Conversation

paulppn
Copy link
Contributor

@paulppn paulppn commented Mar 12, 2019

Removed the extra constructor for the MvxSimpleTableViewSource added in #2897, since it blocks the standard constructor which was already there. The two constructors now virtually did the same. The functionality added in 2897 was broken again in #3175.

Added a boolean to the second constructor, so you can actually set whether or not you want to register the nib cell for reuse, where true is the current value (and thus the standard) and false can be used if you use storyboard nibs.

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

In 2897 we added functionality to use SB cells instead of just xib-cells. This was broken again in 3175, because for the SB views we do not need to register the nib for cell reuse. So I removed the first constructor and added the boolean to the standard constructor which was already there before 2897. Doing this I virtually revert 3175 and implemented 2897 in a way which is non-blocking for the standard xib files.

⤵️ What is the current behavior?

The SB view-cells will not work at this moment, they can not be found when we dequeue the cells.

🆕 What is the new behavior (if this is a feature change)?

The SB views will work correctly again, if you add the bool false to the constructor for the MvxSimpleTableViewSource

💥 Does this PR introduce a breaking change?

It does not, although it can break functionality which depends on 2897, but that is already broken in mvvmcross 6.2.3 because of 3175.

🐛 Recommendations for testing

📝 Links to relevant issues/docs

🤔 Checklist before submitting

MvvmCross#2897, since it blocks the standard constructor which was already there. The two constructors now virtually did the same.

Added a boolean to the second constructor, so you can actually set whether or not you want to register the nib cell for reuse, where true is the current value (and thus the standard) and false can be used if you use storyboard nibs.
@paulppn paulppn requested a review from a team March 12, 2019 08:43
@dnfclas
Copy link

dnfclas commented Mar 12, 2019

CLA assistant check
All CLA requirements met.

@martijn00 martijn00 added this to the 6.2.4 milestone Mar 12, 2019
@martijn00 martijn00 merged commit 27d6579 into MvvmCross:develop Mar 12, 2019
@martijn00 martijn00 modified the milestones: 6.2.4, 6.3.0 May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants