Crosslight iOS Unified API Error

8 replies. Last post: February 13, 2015 3:24 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello Crosslight Support,

I am experiencing some problems with Crosslight iOS Unified (Crosslight 3 Update 2).
My sample solution can be downloaded from the link at the bottom, so you can reproduce the problems.

I created a new project with the wizard in Visual Studio and I used the "Drawer Template" for this. I only created an iOS project. After that, I continued to work on the Mac with Xamarin Studio (5.7 build 661, Xamarin.iOS 8.6.0.51). The first step was to migrate the project to the unified API and to reset the reference to "Intersoft.Crosslight.iOS".

Issue #1: Running the app with iOS 8.1 works fine. Running the app with iOS 7.1 generates an error. See attached screenshot "error_drawer". I tried the same with your "DrawerSample" from the unified branch and I had the same error.

Issue #1B: When I change the root viewmodel in the AppService->OnStart method of the core project to "SimpleViewModel", the application works fine with iOS 7.1 and iOS 8.1. So, my conclusion is that something with the drawer causes an error. But, you are the experts. Please, change the root viewmodel back to "DrawerViewModel" to reproduce Issue#1.

Info: I have XCode 6 installed and I compiled against iOS SDK 8.1. iOS SDK 7.1 is no longer present after upgrading to XCode 6.

Issue #2: I don't know if this problem is related to the unified API, but I describe it here anyway. What I want to achieve with the application is to have a list with image, text and description per list item. In the header part I have three buttons (Add, Update, Delete) to manipulate the list. This works fine. But I also want to manipulate the list items in the background. Therefore I have a timer in the SimpleViewModel. The timer checks every second, if a date of a list item is reached and then this list item should change its appearance. This is done in the SimpleViewModel in line 78. Normally I call "OnDataChanged()" to update a list item. If I do this here, I get an error (see "error_timer" attached) and the app freezes. To reproduce the problem, please comment in line 79 in the SimpleViewModel and set a suitable date in line 68. Updating the "GreetingText" works with the timer, but the list items have some trouble with this. Is it a bug or am I doing something wrong?

I need this to work on iOS 7 and iOS 8 as a Unified API app. A quick solution would be nice.

Thanks,

Thomas

http://81.20.83.35:1973/Intersoft/CrossListTest.zip

All times are GMT -5. The time now is 4:59 PM.
Previous Next