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
18
votes
2 answers

How does memory management works on Xamarin.IOS

I am trying understand how memory management works when using xamarin.ios and running the app on an actual iOS device. My understanding that the iOS platform does not have a garbage collector, but the platform uses ARC (Automatci Reference…
gyurisc
  • 11,234
  • 16
  • 68
  • 102
18
votes
3 answers

Converting UIImage to Byte Array

I need to convert a UIImage to a byte array. I am using Xamarin's Visual Studio plugin to produce an iOS application. The bit of code below gets the image, but I need to send it across a Service Stack as a byte array instead of a UIImage. …
Yahiko Kikikoto
  • 688
  • 3
  • 12
  • 23
17
votes
1 answer

Method 'UIKit.UIApplication.Main' is obsolete: Use the overload with 'Type' instead of 'String' parameters for type safety

After upgrade my Xamarin.Forms version to 5.0.0.2244, I'm getting the following warning in Main.cs file inside my iOS project: Method UIKit.UIApplication.Main is obsolete: Use the overload with Type instead of String parameters for type…
Ângelo Polotto
  • 8,463
  • 2
  • 36
  • 37
17
votes
7 answers

Failed to parse altool output: Failed to parse PList data type: /

I have a Xamarin.Forms application. I am up to date on my VSMac, XCode, Xamarin, Xamarin.Forms, Mac, and everything else that I can think of. I am stumped regarding where to go resolve this issue. It is happening when I attempt to deploy the…
Wallace B. McClure
  • 1,165
  • 1
  • 15
  • 31
17
votes
2 answers

Why is our MonoTouch app breaking in the garbage collector? It is not out of memory

We have a simple question, but the cause is complicated. We are experienced developers, and have done a lot of research into what may be causing it. We are hoping that MonoTouch developers can work with us to identify what appears to be a common…
mj2008
  • 6,647
  • 2
  • 38
  • 56
17
votes
3 answers

Monotouch: convert an Object to NSObject

How is it possible to convert an Object instance to NSObject one? I've created a NSDictionary from NSDictionary.FromObjectAndKey(); This method wants an NSObject but I have custom object to pass in: int key = 2341; var val = new…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
17
votes
3 answers

Bundle id for iOS in Xamarin forms

How can I find bundle id and package name for iOS in a Xamarin forms app? I'm able to find the package name of Android in Android manifest but no clue about iOS.
Judson Abraham
  • 316
  • 2
  • 11
  • 37
17
votes
4 answers

how to edit the info.plist in visual studio?

I need to add keys to the info plist but there is no way to open the file for editing. The xamarin docs state that there should be 3 tabs , one of them being source, which let me manually add keys. Where is that tab?
Rob8861
  • 433
  • 1
  • 4
  • 14
17
votes
2 answers

Handling Global Exception Xamarin | Droid | iOS

We all know that mobile is compact platform where we have to look lots of things while building an application. It could be anything e.g. Memory Performance Resolutions Architecture Implementation etc. We never know when and what causes app crash a…
Mohammad Riyaz
  • 1,544
  • 1
  • 17
  • 26
17
votes
2 answers

How to identify the iOS version in Xamarin.iOS

In native iOS I know how to get device iOS version. But now I want to achieve in Xamarin.iOS. So, how can I get the iOS version of device using Xamarin.iOS?
user3124624
  • 1,206
  • 1
  • 12
  • 18
17
votes
3 answers

Is MonoTouch a viable platform for iPhone development?

MonoTouch seems like a great platform for iPhone development, but I'm concerned about deploying it to the Apple Store. Are there any examples of applications built with it that are currently available on iTunes? We're starting a new project for the…
Eduardo Scoz
  • 24,653
  • 6
  • 47
  • 62
17
votes
2 answers

Is MonoDevelop's editor slow for you?

I'm using the evaluation version of MonoTouch and MonoDevelop to check out writing iPhone app in C#. However, MonoDevelop's editor is very slow for me. I mean really really slow. I have to type and wait for text to be rendered. Do you experience…
dummy
17
votes
2 answers

In monodroid or monotouch what should I use instead of app.config for configuration strings?

I want to store development vs production connection strings and configuration strings in a monodroid project. I would normally store it as app settings in a web.config or an app.config, but how should I do it in monodroid and monotouch projects? …
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
17
votes
5 answers

Not Key Value Coding Compliant (Monotouch and iOS 6)

I just upgraded my Monotouch to 6 and now my app won't start. It was working formerly without any issues. Now it throws an exception (listed below) in the Main.cs file. I've looked through the troubleshooting tips on Xamarin, but it didn't…
jamesbar2
  • 614
  • 1
  • 9
  • 20
17
votes
2 answers

How to create a MonoTouch binding from a .framework

I downloaded TouchDB, a "lightweight Apache CouchDB-compatible database engine suitable for embedding into mobile or desktop apps", which gives me a bunch of .framework folders (CouchCocoa.framework, TouchDB.framework and…
Louis Boux
  • 1,228
  • 1
  • 12
  • 26