Questions tagged [xamarin.ios]

Xamarin.iOS (previously known as MonoTouch) is a commercial software development kit for Mac OS X and Windows that lets you use C# (a .NET programming language) to create native applications for Apple iPhone, iPod Touch, iPad (iOS), Apple Watch (watchOS) and AppleTV (tvOS) devices.

Xamarin.iOS (previously known as MonoTouch) is a cross-platform implementation of Microsoft's CLI (.NET) that lets developers write "once" for iOS, OS X, Android, and Windows Phone in C#.

Xamarin comprises an IDE (Xamarin Studio for OS X and Windows), a plugin for Visual Studio, and libraries for each of the target OS's. Xamarin implements a hybrid approach to cross-platform development, whereby business logic exists in a shared core project, and the visual layer is implemented in platform-specific projects for each target platform.

Developers thus have access to advanced C# language features and libraries, as well as platform-specific UI libraries. To comply with Apple policy, iOS and OS X apps compile "all the way out" so as not to require a runtime.

16577 questions
13
votes
13 answers

Android Toast in iPhone?

When I write Android apps, I love the Toast feature. Is there a way to get this kind of set and forget popup message in iPhone development using MonoTouch (C# .NET)?
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
13
votes
3 answers

How to set form Background as transparency in portable cross platform xamarin form?

I am using Portable xamarin cross platform. I have two project android and IOS. I have to make form as transparent form. I have written code for same and this code perfectly working in android but not in IOS Below is my code:
Kirti Zare
  • 719
  • 1
  • 12
  • 35
13
votes
1 answer

How to symbolicate crash/error logs from a Xamarin Forms iOS project?

I need to symbolicate some crash logs and for that I read that I need the .app and the .dSYM files together with the .crash files. I can't find the .app file anywhere. I have the .app.dSYM file and the .crash ones but I can't find the .app one. I…
Dpedrinha
  • 3,741
  • 3
  • 38
  • 57
13
votes
2 answers

Xamarin - Show image from base64 string

I'm pretty new to Xamarin and XAML stuff and here is what I've done so far in my portable project used by Android & iPhone (only using Android): Item.cs (loaded from JSON) [JsonProperty("image")] private string ImageBase64 { get; set; } …
Arnaud F.
  • 8,252
  • 11
  • 53
  • 102
13
votes
5 answers

Should I choose Xamarin native or Xamarin.Forms for existing Android app?

We have an android application and want to recreate it for cross platform. What are the facts for or against Xamarin native and forms? The advantage of native would be, we could reuse all the xml-layouts while we have to recreate the iOS view in…
AliMC
  • 133
  • 7
13
votes
1 answer

Communication between 2 apps on same device iOS/Android with Xamarin

We currently are developping an app that is sort of "add-on" app for our main app to extends its possibilities. We asked ourselves if there's simple inter-app communication on same device (nothing found on the internet for this...). Our first…
cdie
  • 4,014
  • 4
  • 34
  • 57
13
votes
2 answers

Maintain Cookies UIWebView iOS Xamarin

I have a UIWebView which Authenticates a user. I want to enable single Sign on. For this I want to store the cookies when the user is first authenticated and then the next time he starts the app, the cookies should automatically be passed to the…
hello world
  • 797
  • 1
  • 9
  • 31
13
votes
1 answer

Xamarin Studio cross platform app error

At the moment I'm trying to launch empty app with cross-platform solution in Xamarin Studio. I've tried make app with empty library project and shared library, both has same errors. Now unresolved problems are: 1) Build error: Error XA5207: Please…
Ircover
  • 2,406
  • 2
  • 22
  • 42
13
votes
3 answers

Use lldb to debug native libraries with Xamarin

The Xamarin debugging documentation indicates: Use Xamarin Studio's native debugging support for debugging C# and other managed languages code and use LLDB when you need to debug C, C++ or Objective C codethat you might be linking with your…
Kostub Deshmukh
  • 2,852
  • 2
  • 25
  • 35
13
votes
1 answer

Xamarin: Exceptions raised from tasks are not propagated

I have the following code in Xamarin (tested in ios): private static async Task TaskWithException() { return await Task.Factory.StartNew (() => { throw new Exception ("Booo!"); return ""; }); } public static async…
madaboutcode
  • 2,137
  • 1
  • 16
  • 23
13
votes
3 answers

Executable name (AppName1.exe) and the app name (AppName2.app) are different

I get the following warning in MonoTouch. How can I solve it? I want both to be named App1 but I can not find the right spot. Thanks! warning MT0030: The executable name (App1.exe) and the app name (App2.app) are different, this may prevent crash…
Henning Schulz
  • 627
  • 6
  • 16
13
votes
2 answers

Output current app's build version as a string - Xamarin.iOS

I want to output the app's current build version as a string onto my app's about view. Is there a method of reading this dynamically from the info.plist file or elsewhere rather than hardcoding it in? E.g: Build Version: 1.0
Dave Haigh
  • 4,369
  • 5
  • 34
  • 56
13
votes
5 answers

NSTimer versus Timer in Xamarin.iOS - when to use what?

Is there a rule when to use the native NSTimer versus the .NET alternatives? System.Windows.Forms.Timer System.Timers.Timer System.Threading.Timer
Krumelur
  • 32,180
  • 27
  • 124
  • 263
13
votes
5 answers

UITextField Max Length in C# with Xamarin.iOS

I would like to set a limit to the number of characters that can be entered into a UITextField in an iOS app to 25 characters. According to this post, it could be done in Objective-C like this: - (BOOL)textField:(UITextField *)textField…
Jason Hartley
  • 2,459
  • 1
  • 31
  • 40
13
votes
2 answers

Fluent Bindings and UIButton titles

Since my user interfaces generally need to have localized strings, my view models provide all the strings which the views consume. This includes things like the titles on buttons. on the iOS side, button titles are set via the SetTitle method. In…
Frank Caico
  • 363
  • 2
  • 8