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
4
votes
1 answer

Can't run Xamarin.iOS application on a device, quits after splash screen

This question is not a duplicate of these two, since both are answered and neither one solutions worked in my case. App dies on startup but not crash report Xamarin app crashes on startup on device, works fine in simulator Whenever I create a brand…
Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174
4
votes
1 answer

Visual Studio publishing to app store with Xamarin

I can't find any documentation on how to publish your app to the app store from Visual Studio? Is this a case of having to use Xamarin Studio once you are ready to submit your app? It seems a bit odd that xamarin gives you the opportunity to use…
creatiive
  • 1,073
  • 21
  • 49
4
votes
1 answer

Code works in Xamarin Android but doestn't work in Java (HttpPost JSON)

I started developing in Xamarin, and then decided that license may be a bit expensive for playing around, so I'm transferring my code to java. I have a small chunk that performs a POST with a JSON object, and it works in Xamarin and doest work in…
Anarion
  • 2,406
  • 3
  • 28
  • 42
4
votes
1 answer

Xamarin iOS Binding: Could not initialise an instance of the type, returned nil

I've bound an iOS library, SVGKit, to C# using Xamarin/Monotouch. After some issues I've managed to get the library to build ok. My code can be found here: https://github.com/jamesmundy/SVGKit.Xamarin Unfortunately, when I try to initialise a type…
James Mundy
  • 4,180
  • 6
  • 35
  • 58
4
votes
2 answers

How do I programatically use AutoLayout to set a UIView to the same width as its SuperView?

I have a simple UIView that I want to make the same width as the containing View's width. I want to do this programatically. I can add a constraint in the containing View that makes the SubView's Width equal to the width of container. The C# is…
Pat Long - Munkii Yebee
  • 3,592
  • 2
  • 34
  • 68
4
votes
2 answers

Error CS1540/CS0122: Getting keyboard size doesn't work after switching to Unified API

Today I updated to Xamarin.iOS 8.6.0.51 and switched to the new Unified API. Now I want to get the keyboard size (this code worked before): var val = new NSValue (notification.UserInfo.ValueForKey…
testing
  • 19,681
  • 50
  • 236
  • 417
4
votes
3 answers

How do you force regeneration of *.designer.cs files in a command-line Xamarin build?

I'm building an iOS Xamarin app from the command line. The *designer.cs files have been removed. What command do I run to regenerate the *.designer.cs files?
James Moore
  • 8,636
  • 5
  • 71
  • 90
4
votes
3 answers

iOS Instruments Allocation and Leaks crash the Xamarin application

I'm currently developing a big application with Xamarin.I'm trying to fix some leaks that happens but whenever I use instruments Leaks or Allocation those tools make the app freeze and the recording stops taking anything. My app is in Debug mode…
Vincent D.
  • 977
  • 7
  • 20
4
votes
2 answers

MonoTouch.Foundation.MonoTouchException has been thrown Objective-C exception thrown. Name: NSInternalInconsistencyException

I seem to be getting this issue whenever I run my iOS app within Xamarin. MonoTouch.Foundation.MonoTouchException has been thrown Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Could not load NIB in bundle: ’NSBundle…
imageobject
  • 55
  • 2
  • 9
4
votes
2 answers

NSURLSession CreateUploadTask failure with xamarin iOS

I am trying to upload an object to my WebAPI using the NSURLSession to perform this in the background. My Web API is operational - my problem is that the client code gets to the CreateUploadTask() method and then just throws an exception. It is a…
creatiive
  • 1,073
  • 21
  • 49
4
votes
3 answers

AVAssetExportSession - The video could not be composed

I am trying to do some basic Video Compositions in Xamarin / Monotouch and am having some success but am stuck what seems to be a rather simple task. I record videos from the camera in portrait so I use AVAssetExportSession to rotate the videos. I…
nite
  • 186
  • 1
  • 2
  • 8
4
votes
1 answer

Xamarin iOS 8 Bundle Resource - Access to the path is denied

I've have a Xamarin iOS project with a file that I have marked as a bundle resource. The file is configured in the project like so: I've have been using the following to access the file as a…
sungiant
  • 3,152
  • 5
  • 32
  • 49
4
votes
1 answer

Xamarin create masterdetailpage with multiple detail view using xaml

I'm new to Xamarin framework and developing an application for both iOS and Droid shared application. I just wanted to make a left slider menu like a facebook app using Masterdetailpage layout with XAML. I couldn't find the proper example or stub…
Sathish
  • 416
  • 1
  • 6
  • 20
4
votes
1 answer

Xamarin Android, custom control and Visual Studio designer

I have created a custom control in Xamarin using Visual Studio and C#. The Custom control works perfectly and the code is quite simple: [DesignTimeVisible(true)] public class CustomTextView : TextView { public CustomTextView(Context context) …
Raffaeu
  • 6,694
  • 13
  • 68
  • 110
4
votes
1 answer

What approach should I take when implementing a horizontal GridView in Xamarin.Forms?

I need to implement the horizontal (magazine style) list. The apps that do this quite good (in my opinion) are Flipboard and Zite. I wondered if this is possible to implement into a Xamarin.Forms application with existing resources. In…
Jack Sierkstra
  • 1,414
  • 2
  • 20
  • 42