首页 > 解决方案 > Xamarin.iOS Side of Application, Ignoring Blocks of Code

问题描述

My Xamarin.iOS side of the application is just simply ignoring the images list for the MainPage Carousel.

I've set

Forms.SetFlags("CarouselView_Experimental");

In App Delegate

Android run's fine without any hitches.

Note: These are loaded from a WebPage

Code in Question:

//Breaks
  InitializeComponent();
//Skips IOS only
 var imagez = new List<string>
 {
 "https://Site/Pic1.jpg","https://Site/Pic2.jpg","https://Site/Pic3.jpg","https://Site/Pic4.jpg","https://Site/Pic5.jpg"
 };
  //Skips IOS only
  MainCarouselView.ItemsSource = imagez; 

If any more context is needed let me know.

标签: c#xamarin.forms

解决方案


我最终改用了 Alexrainmen CarouselView

GitHub

它完美地工作。


推荐阅读