Forum Xamarin.iOS

can i create an empty UIImageViews inside the UIStackView?

can i create an empty UIImageViews inside the UIStackView Xamarin iOS (C#)

I am trying to add empty images inside the UIStackView

CGPDFDocument pdfDoc=CGPDFDocument.FromFile(_docFilePath);

UIStackView stackView=new UIStackView();
UIImageView imageView;
for(int i=0;i<pdfDoc.Pages;i++)
{
CGPDFPage page=pdfDoc.Pages;
imageView=new UIImageView(new CGRect(page.GetBoxRect(CGPDFBox.Media).Size));
stackView.AddArrangedSubViews(imageView);
}

I need to create a blank UIImageView inside the UIStackView so that i can add the PdfPage whenever i need.

Sign In or Register to comment.