iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello Crosslight Support,
I just tried your "Enable Custom Cell Actions with Swipe Gesture" tutorial which is great. I would like to have more of this for other features of Crosslight.
Unfortunately, I found once more a bug in Crosslight (Crosslight 3 Update 3 - iOS Unified). When you test the swipe gesture stuff with iOS8.1 it works fine (device and simulator). But when you change to iOS7.1 the situation gets worse (device and simulator). I used your ToDo sample for testing.
If you have declared a UIEditAction with a color as second argument, you get a runtime error when starting the sample. See attached "screen1". When I comment out the color (screen2) the sample runs, but there is no reaction on swipe gestures. So the feature is kind of invisible on iOS7.1.
There is still a world beside iOS8, so please make the feature work for iOS7, too.
A quick fix would be nice.
Thanks,
Thomas
Hello Yudi,
I just tested on iOS 7/8/9 and it works as intended. Great.
Thanks for fixing this.
The new roadmap sounds interessting. I hope some of the features are already included in updates of Crosslight 4.
The swipe gesture only available in iOS 8.
The Crosslight development team decided to implement this for iOS 8 to leverage native iOS API so that it conforms with Apple's standard human interface guideline.
iOS 8 opened up this API. However, the same thing doesn't happen on iOS 7. You'll need to update the target to iOS to get this custom edit action functionality.
this is sad to here. Do you have a proposal for an equivalent behaviour under iOS7?
Unfortunately there will be no equivalent behavior under iOS 7.
There are some that tries to replicate this on iOS 7, but turns out ugly. It requires tedious workaround; messing up with scroll view; causing the table view to become heavy and prone of errors; etc.
The equivalent behavior in 7, perhaps to go with long click then show action present instead of swipe gesture.
Sounds interesting and could be a nice behaviour for iOS7.
Do you have a sample for this?
in one of the previous posts you said "the swipe gesture is only available on iOS8". I think this is not true. Please, have a look at the "Drawer Data Samples". Go to "Single Delete" and swipe from right to left over a list item. Doing this a "Delete" button appears. So, there is a swipe gesture avaibable on iOS7, too. Going to "Multiple Delete" in the same sample, there is no swipe gesture. How can I activate the swipe gestern in the "Multi Delete" scenario, too?
Any comments?
Sorry for the delay in sending this.
... Please, have a look at the "Drawer Data Samples". Go to "Single Delete" and swipe from right to left over a list item. Doing this a "Delete" button appears. So, there is a swipe gesture avaibable on iOS7, too. Going to "Multiple Delete" in the same sample, there is no swipe gesture. How can I activate the swipe gestern in the "Multi Delete" scenario, too?
This swipe gesture is the built-in swipe gesture in iOS 7. The "Delete" button will appear on view which derives UITableViewController and the EditingOptions is set to AllowEditing.
For example, we can try to add following snippet code in SimpleListViewController and "Delete" button will appear when user swipe the list item.
public class SimpleListViewController : UITableViewController<SimpleListViewModel> { public override EditingOptions EditingOptions { get { return EditingOptions.AllowEditing; } } }
The custom contextual cell actions which is explained in here is achieved by adding UIEditAction.
Hope this help.
unfortunately, this doesn't help at all and it doesn't answer the question.
Please, take a look at the DataSamples sample under iOS 7 and go to "Multiple Delete". EditingOptions.AllowEditing is set but there is no swipe gesture. Doing the same on iOS 8 the "Delete" button appears when I swipe. Why is the swipe gesture in the "Multiple Delete" section not working under iOS 7?
To me this seems like a bug.
The tutorial about the custom cell actions says at the beginning "Since iOS 7, Apple introduced a new user interface feature called custom cell action ...". Why is this feature not working under iOS 7 with Crosslight?
The requirement: to show "Delete" button (by swiping over a list item from right to left) in the "Multiple Delete" section under iOS 7, has been forwarded to Crosslight development team. The report is filed under CROS-803.
On iOS 7, swipe-to-delete no longer works when EditingOptions is set to AllowMultipleSelection. UITableView has AllowsMultipleSelectionDuringEditing property which defines whether more than one row can be selected while in editing mode. Ideally, what we need to do is only enable AllowsMultipleSelectionDuringEditing when the table view is in editing mode.
This is achieved by adding following snippet code in MultipleDeleteViewController.
public override void SetEditing(bool editing, bool animated) { this.TableView.AllowsMultipleSelectionDuringEditing = editing; base.SetEditing(editing, animated); }
After adding the above code, I found that swipe-to-delete works after user press "Edit" (on the top-right side) then press "Done". I"m sure the team will resolve this issue in fashion time. I'll keep you informed with any news I heard from the team regarding CROS-803.
any news about a fix for CROS-803?
CROS-803 is in progress state and currently there is no nightly-build available to be evaluated yet. I will let you know once CROS-803 is resolved.
it is quite some time since the last update of this thread. Are there any news about CROS-803?
Thanks,Thomas
CROS-803 is not on the fix list for Crosslight 4. When will this issue be solved?
An answer would be nice. My last request about this topic is still uncommented and the issue is open for more than 4 months now.
Sorry for the delayed fix of CROS-803. I will check with the dev whether the hotfix can be scheduled to be released along with the Crosslight 4 Update 1.
this issue is pending for quite some time.
Will this finally be fixed with Crosslight 4 Update 1? When will this update be released?
The backlog, CROS-803, is now in active sprint of Crosslight 4 Update 1. The ETA of Crosslight 4 Update 1 is at the end of the month of September 2015.
Edited on September 15, 2015 8:10 AMReason: provide nightly-build for CROS-803
Nightly-build for CROS-803 is now available in here.
I have tested the nightly-build on the above scenario. The swipe gesture is now working on iOS 7. Please give it a spin and let us hear your feedback.
the swipe gesture is working on iOS7, but I encountered serveral new strange behaviours (Drawer Data Sample - tested on iOS 7 / 8 / 9):
1. Single Delete: I make the swipe and the "Delete" button appears. Now, I am in "edit mode" but in the navbar it still says "Edit". Comparing this to the mail app, it is not the right behaviour. When I make the swipe, the mode should change to "edit mode" and in the navbar it should say "Done". Do I have to do this programmatically? If so, how?
2. Single Delete: After the swipe, I see the "Delete" button. Then I click on "Edit". After that I click on a row which has no "Delete" button. The "Delete" button of the other row disappears, but I am still in edit mode. I have to press "Done" to leave edit mode. I think this should be done automatically. Do I have to do this programmatically? If so, how?
3. Multiple Delete: Same as above (1 + 2). No edit mode after swipe.
4. Multiple Delete: After the swipe, I see the "Delete" button. Then I click on "Edit". The toolbar appears at the bottom and says "Delete". But "Delete" is grayed out and not red like "Delete (1)". So, the swipe is not in sync with the toolbar.
5. Multiple Delete: I go to the page and click "Edit". I see the circles at the left of each row. I select the first two entries and click "Done". Clicking "Edit" again no row is selected, but in the toolbar I see "Delete (2)". Again out of sync.
6. Using "this.Appearance.ToggleEditModeOnCellActions = true;" in the view controller in OnViewInitialized did nothing. The edit button did not toggle at all.
this
.Appearance.ToggleEditModeOnCellActions =
true
;
So, the swipe gesture works great, but the overall behaviour is much worse than before. Please, have a look at this and fix these issues with the final release of Crosslight 4 update 1. I am waiting for this since March. The result right now is very poor. Maybe my versin of the Data Drawer Sample is outdated. If you created a newer version of the sample which behaves different, let me know.
If you need further descriptions, feel free to ask.
any news about this issue?
This is really urgent.
Thank you very much for the detail feedback regarding the nightly-build of CROS-803.
CROS-900 has been created regarding this feedback. The Crosslight development team has improved the swipe gesture per your suggestion. It will change into "edit mode" when user make the swipe. It shows "Done" in the navigation bar instead of "Edit".
A nightly-build of CROS-900 is now available to be evaluated.
After apply the nightly-build of CROS-900, this scenario will no longer persist. After the swipe, "Delete" button will appear. Instead of "Edit", now "Done" is shown in navigation bar.
Same comment as feedback #2.
CROS-901 has been created regarding this feedback. This problem is fixed in the sample-level (doesn't fix in Crosslight assembly level). It is fixed by reset selected items (by invoking ClearSelection() method) so that it will sync correctly. The toolbar shows correct information of selected items now.
Please find the modified sample of DataSamples in "feature/september-2015" branch. Please don't forget to apply the nightly-build of CROS-900. You can find it in here.
Note: since the Crosslight assembly in Crosslight4_0_5000_305 has implemented support for WatchKit, please apply the latest update of XamarinStudio and Xamarin.iOS.
Thank you, Yudi. I will test this tomorrow.
By the way, is WatchKit 1 or WatchKit 2 supported with the new release?
Hi Thomas,
Thank you for taking the time to test the new nightly-build and sample. The new release will support WatchKit 2. For more detail, please check the Crosslight 5 roadmap in here.
@elizbeth truss
Glad to know that you find the information in this thread usefull.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname