xamarin.ios

What is correct way to combine long-running tasks with async / await pattern?

假如想象 提交于 2020-06-10 02:20:48
问题 I have a "High-Precision" timer class that I need to be able to be start, stop & pause / resume. To do this, I'm tying together a couple of different examples I found on the internet, but I'm not sure if I'm using Tasks with asnyc / await correctly. Here is my relevant code: //based on http://haukcode.wordpress.com/2013/01/29/high-precision-timer-in-netc/ public class HighPrecisionTimer : IDisposable { Task _task; CancellationTokenSource _cancelSource; //based on http://blogs.msdn.com/b

Xamarin ios simulator failed to install

萝らか妹 提交于 2020-06-01 07:50:30
问题 When I try to run the application on ios I'm getting this error is occur. I'm windows user can anyone please help me Please check following error Failed to install //users/library/apple/cachee/Xamarin/mtbs/builds/project.ios/28dsdkjw323wm323dsddsdn232k23/bin/iphonesimulator/debug/project.ios.app to DO3c105/Failed to lanuch this simulator 回答1: I would give you some suggestions: 1.Delete your app in the simulator, reset the simulator, delete the obj and bin folder, clean and rebuild the project

Window.MakeKeyAndVisible() is not showing new window in iOS 13 and above OS

与世无争的帅哥 提交于 2020-06-01 07:37:05
问题 My requirement is to open new UIWindow instead story board. Used below code to do this, UIWindow window = new UIWindow(UIScreen.MainScreen.Bounds); UIApplication.SharedApplication.KeyWindow.WindowLevel = UIWindowLevel.Normal + 0.1f; window.RootViewController = new MainNavigationController(); window.MakeKeyAndVisible(); It's working fine in iOS below 13 versions, but not in 13 and above. Have noted that iOS 13 and above were new update for multi screen, and have introduced scene delegate, so

Visual Studio for Mac - No Matching Provisioning Profile

一个人想着一个人 提交于 2020-05-30 08:01:55
问题 The Visual Studio for Mac was working perfectly till Yesterday for my both simulator and device builds. But, today I have downloaded and installed a new provision profile with some new capabilities, after that it couldn't identify my provisioning profile even the previous one with old capabilities. I have double checked the bundle identifier name, but no issue with bundler identifier. The same profile is working perfectly with xcode. I have tried development and distribution profile, but no

Issue with nuget package Xamarin.Firebase.iOS.CloudMessaging 3.1.2

别来无恙 提交于 2020-05-24 05:50:31
问题 I get many error messages if I install the Xamarin.Firebase.iOS.CloudMessaging 3.1.2 nuget package. Error: linker command failed with exit code 1 (use -v to see invocation) Error MT5210: Native linking failed, undefined symbol: _FIRLogBasic. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. Error MT5211: Native linking failed, undefined Objective-C class: FIROptions. The symbol '_OBJC_CLASS_$_FIROptions' could not be found in any

Drag and Drop labels in Xamarin Forms App

こ雲淡風輕ζ 提交于 2020-05-24 04:03:00
问题 I have to develop a cross platform app in Xamarin forms and its one of the requirements is to be able to drag and drop dynamically generated labels between different views on same UI (i.e. check the image).. I have generated the dynamic labels but I am not sure how to implement drag and drop functionality. Can anyone guide me regarding the best choice of controls here like the containers containing the labels? Also do I need to write separate code for implementing the drag and drop on Android

Drag and Drop labels in Xamarin Forms App

北慕城南 提交于 2020-05-24 04:02:26
问题 I have to develop a cross platform app in Xamarin forms and its one of the requirements is to be able to drag and drop dynamically generated labels between different views on same UI (i.e. check the image).. I have generated the dynamic labels but I am not sure how to implement drag and drop functionality. Can anyone guide me regarding the best choice of controls here like the containers containing the labels? Also do I need to write separate code for implementing the drag and drop on Android

How to Implement Deeplink(Universal Linking) In Xamarin forms Both Android and iOS?

☆樱花仙子☆ 提交于 2020-05-23 10:54:52
问题 Guys, I need to implement Applink (Universal Link) step by step both android and iOS, please any to help achieve this. I tried the following code in my android project I followed this URL to write this https://devblogs.microsoft.com/xamarin/connect-with-your-users-with-google-search-and-app-indexing/ Note I no need to indexing concept just want to open the app from Clicking of any URL First I Installed Xamarin.Forms.AppLinks NuGet Below code MainActivity [IntentFilter(new[] { Android.Content

How to Implement Deeplink(Universal Linking) In Xamarin forms Both Android and iOS?

南笙酒味 提交于 2020-05-23 10:54:07
问题 Guys, I need to implement Applink (Universal Link) step by step both android and iOS, please any to help achieve this. I tried the following code in my android project I followed this URL to write this https://devblogs.microsoft.com/xamarin/connect-with-your-users-with-google-search-and-app-indexing/ Note I no need to indexing concept just want to open the app from Clicking of any URL First I Installed Xamarin.Forms.AppLinks NuGet Below code MainActivity [IntentFilter(new[] { Android.Content

open PDF with PDFKit.PDFView on iOS

一个人想着一个人 提交于 2020-05-17 05:58:08
问题 I have an application with PDF viewer, and I try to use PDFKit.PDFView which need to PDFKit.PDFDocument object. My code is: var pdfview = new PdfKit.PdfView(); var path = NSBundle.MainBundle.PathForResource("Harvard", "pdf"); var urll = new NSUrl(path); var pdfdoc = new PdfDocument(urll); pdfview.Document = pdfdoc; I get an exception at line 4, which says : Could not initialize an instance of the type 'PdfKit.PdfDocument': the native 'initWithURL:' method returned nil My pdf file, Harvard.pdf