Failed to instantiate the default view controller for UIMainStoryboardFile

I am writing a small sample app with Xamarin and MvvmCross 6.4.2. I completed the Xamarin.Android version and am now starting the Xamarin.iOS version. I created a view controller for the first screen: public class SignInViewController : MvxViewController<SignInViewModel> { public SignInViewController() : base(nameof(SignInViewController), null) { } public override void ViewDidLoad() { // never gets called… […]

By Darius
Published
Categorised as Uncategorised Tagged , ,

ViewDidLoad never gets called

In my Xamarin.iOS app, I have SignInViewController as my controller/view for SignInViewModel which is the first screen of the app. It works fine in the Android version, but on iOS the ViewDidLoad method does not get called for SignInViewController, resulting in a blank page. Can someone tell me why please? I dropped my code here: […]

By Darius
Published
Categorised as Uncategorised Tagged ,

How to open a downloaded file

I am writing an application for Xamarin.iOS, but an answer in native iOS would suffice. After I download a file (image or pdf) I want to open it: public void DidFinishDownloading(NSUrlSession session, NSUrlSessionDownloadTask downloadTask, NSUrl location) { // how to open location? } I tried UIApplication.SharedApplication.OpenUrl(location); but nothing happens. Source: Xamarin.ios Questions

By Darius
Published
Categorised as Uncategorised Tagged ,

UIDatePicker locale day

I writing an app in Xamarin.iOS but an answer in native will suffice. I want to localize my date picker so that it shows the picker in French. So far I did this: Locale = new NSLocale("fr-CA"); It shows the month in French, but not the days of the week. Here is an image of […]

By Darius
Published
Categorised as Uncategorised Tagged ,

Get Manufacturer Data from BLE on iOS devices

In my Xamarin.Android app, I can read Manufacturer Data from BLE with the following code: public class CustomScanCallback : ScanCallback { public override void OnScanResult([GeneratedEnum] ScanCallbackType callbackType, ScanResult result) { base.OnScanResult(callbackType, result); if (result.ScanRecord.ManufacturerSpecificData != null) { var dataByteResult = result.ScanRecord.GetManufacturerSpecificData(0xFFFE); if (dataByteResult != null) { Guid dataResult = new Guid(dataByteResult); if (dataResult.ToString() == “myUuid”) […]

By Darius
Published
Categorised as ios, xamarin

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq