xamarin.ios

SQLite problem “unable to open the database file”

旧城冷巷雨未停 提交于 2020-01-25 02:19:10
问题 I come to you after a lot of hours googling and reading other discussions about SQLite on StackOverflow, but I definitely can't find any explanation to my problem, so here it is : The context : I'm developping an application for iPad wich has to deal with some "large" amounts of data, in several occasions. In one of them, I must import points coordinates from a .kml file (Google's xml for geographical data) into my database, in order to reuse them later with a MKMapView and load them faster

Build fail, error MT2101: Can't resolve the reference 'System.String[] System.String::Split(System.Char,System.StringSplitOptions)'

帅比萌擦擦* 提交于 2020-01-25 01:04:05
问题 failing when building on Azure DevOps (formerly VSTS) using the Microsoft Hosted MacOS agent, mac-os-10.14. Any ideas? The difference in INSTALLED SOFTWARE IN Mac-Os14 and my mac OS is below: Hosted agent Mac-Os14: VS for Mac: 8.4.0 Nuget: 4.7.0 Xcode Latest: 11.3 .NET Core SDK 1.0.1 1.0.4 1.1.10 1.1.11 1.1.12 1.1.13 1.1.4 1.1.5 1.1.7 1.1.8 1.1.9 2.0.0 2.0.3 2.1.100 2.1.101 2.1.102 2.1.103 2.1.104 2.1.105 2.1.2 2.1.200 2.1.201 2.1.202 2.1.300 2.1.301 2.1.302 2.1.4 2.1.400 2.1.401 2.1.402 2.1

can't connect to sql azure database using monotouch

家住魔仙堡 提交于 2020-01-25 01:02:49
问题 I'm working on a iphone project using c# and monotouch. I need to use an SQL Azure database. My problem is that I cant seem to get connected using monotouch. I can make the code below work fine in a native console application built on a windows 8 machine using visual studio 2012. But, when I try to port it over to an imac and use monodevelop/monotouch my iphone app crashes. The error I get is: System.NotImplementedException: SSL encryption for data sent between client and server is not

CALayerDelegate disposing issue

大憨熊 提交于 2020-01-25 00:00:08
问题 The issue actually is valid for Xamarin.iOS. However, I decided to add iOS tag to this question as well, just in case. I have managed to reproduce the issue with extremely simple example. The app consists of UINavigationController and has 2 pages. First page has just the button to navigate to second page. Second page adds new UIView to main view of UIViewController. It also assigns CALayerDelegate to the Layer property of this new UIView. The issue occurs when second UIViewController is

Where can I find the MyDocuments folder on iPhone Simulator?

不打扰是莪最后的温柔 提交于 2020-01-24 14:09:15
问题 I created a text file named Write.txt in the Documents folder in a Xamarin.iOS app. After that I was able to read its content to the console. var documents = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); var filename = Path.Combine(documents, "Write.txt"); File.WriteAllText(filename, "Write this text into a file"); var text = File.ReadAllText(filename); Console.WriteLine(text); // prints out correctly The problem is, that I can't found this file on the iPhone simulator's

Error: Failed to resolve “AuthenticationServices.ASWebAuthenticationSession” reference from "Xamarin.iOS

試著忘記壹切 提交于 2020-01-24 08:58:45
问题 We're using Azure DevOps to build our Xamarin Forms mobile app. This has been working without any problems for weeks now. For some reason I am now getting the following error when we build the iOS project: MT2002: Failed to resolve "AuthenticationServices.ASWebAuthenticationSession" reference from "Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065" The Android and shared project are working perfectly. This is only a problem with the iOS project. I haven't changed

Add/remove EventHandler for UIBarButtonItem

耗尽温柔 提交于 2020-01-24 05:49:05
问题 One can define an EventHandler in the constructor: UIBarButtonItem logoutButton = new UIBarButtonItem (UIBarButtonSystemItem.Stop, logoutButtonEventHandler); private void logoutButtonEventHandler(object sender, EventArgs args){ Console.WriteLine("Logout"); } Is it possible to remove the EventHandler afterwards? Perhaps by not using an EventHandler at all and instead use the Action / Target properties of UIBarButtonItem? I don't find any examples. Only anonymous methods are used all the time.

MonoTouch Web Service Request over SSL Gets 'authentication or decryption has failed'

血红的双手。 提交于 2020-01-23 03:12:24
问题 A web service request over SSL raises a WebException on Monotouch v4.0.4.1: 'Error getting response stream (Write: The authentication or decryption has failed)' Since the server's SSL certificate is self-signed (and btw I think it is not X.509), I am bypassing the certificate validation using ServicePointManager.ServerCertificateValidationCallback. The exact same code works fine on Windows .NET, where the web service call returns the correct result. On Monotouch adding a Writeline shows that

Trouble with xamarin.ios/monotouch , mvvmcross and linking

一笑奈何 提交于 2020-01-22 23:31:09
问题 I have an irritating issue, if I use Link SDK Assemblies only in xamarin studio I get an exception, if I use dont link the exception is not happening. I have located the issue to be part of an third party dll i am using(api for a video streaming service). I believe the linker is stripping some of the methods used by this dll. Is it possible skip link of some libraries and is it possible to see which from this stacktrace. 2013-05-08 14:40:54.688 AppsfabrikkenTouch[5662:907] mvx: Diagnostic: 18

UIViewController.View.Window is null in ViewDidLoad method

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-22 17:20:54
问题 Regardless on which controller type ( UIViewController , UITableViewController ), the following line always yields null in the ViewDidLoad method: this.View.Window Is this behavior normal, or am I doing something odd? What could lead to UIViewController.View.Window being null ? (I suppose this question concerns not only MonoTouch, but also 'normal' Objective-C Cocoa). (MonoTouch 5.2.11, XCode 4.2.1 4D502) 回答1: According to the documentation of UIView, the window property is nil if the view