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
4 answers

The type or namespace name 'XmlDocument' could not be found. Are you missing an assembly reference?

I'm trying to parse an xml document using the following: XmlDocument doc = new XmlDocument (); doc.LoadXml (myXMLstring); I get the error: The type or namespace name 'XmlDocument' could not be found. Are you missing an assembly…
Ohiovr
  • 977
  • 1
  • 12
  • 22
4
votes
1 answer

How can I change the page programatically in CarouselPage in Xamarin.forms?

I'm using CarouselPage class to implement Horizontal Slider in Xamarin.Forms. I am going to make CarouselPage class to move to the next page from tapping on the page, not swiping. Is it possible? Can anyone help me? Thanks in advance.
Fenix
  • 1,552
  • 2
  • 23
  • 44
4
votes
1 answer

How to run mtouch command to launch Xamarin.iOS app on simulator for automated testing?

I am new to Xamarin and I need to be able to launch a Xamarin iOS app on iOS simulator from command line. I have tried running mtouch but obviously am missing on something as I am not able to successfully launch the app on simulator. I don't know if…
EmbCoder
  • 562
  • 1
  • 7
  • 16
4
votes
1 answer

How to, applicationDidBecomeActive in Xamarin iOS?

How do I do this in Xamarin iOS? ViewDidAppear is not called when opening app from background The link below mentions the OnActivated method for Xamarin in the AppDelegate, but how do I subscribe my ViewController so it knows when the app comes…
LampShade
  • 2,675
  • 5
  • 30
  • 60
4
votes
2 answers

SIGABRT error after last Xamarin.iOS update

Just updated to the lastest version of Xamarin studio and Xamarin.iOS. Now I am getting this error: Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your…
Corstiaan
  • 1,114
  • 15
  • 34
4
votes
1 answer

monotouch ios - audioplayer returns nil when initializing

Okay, I have this problem for almost a month now. Some audio files are not playing. It just returns an error like this: Could not initialize an instance of the type 'AVFoundation.AVAudioPlayer': the native 'initWithContentsOfURL:error:' method…
TrieNoir
  • 53
  • 1
  • 1
  • 8
4
votes
1 answer

Xamarin custom UITableViewCell throws System NullReferenceException

I'm creating a Xamarin app for iOS and I've added a UITableViewCell to a storyboard to give it my own style. I did add a class to this custom UITableViewCell, namely MainMenuCell. I added two labels to the cell and connected them with the…
Tomzie
  • 1,338
  • 4
  • 19
  • 25
4
votes
1 answer

Symbolicating iOS crash dump: symbols not found

I'm trying to symbolicate a crash dump for an iOS app buit using Xamarin.iOS. I am seeing a lot of warning about not being able to find symbols for system binary images such a Foundation, and the output from symbolicate is ultimately missing most of…
Andy Johnson
  • 7,938
  • 4
  • 33
  • 50
4
votes
2 answers

PresentViewController, storyboard doesn't contain a view controller

Something changed in a recent Xamarin iOS or Xamarin Studio update and I'm now getting strange errors with simply PresentViewController. This same exact code worked a month ago. I think something in Xamarin changed because they just recently added…
LampShade
  • 2,675
  • 5
  • 30
  • 60
4
votes
1 answer

iOS Archive size difference: command line vs. Xamarin Studio

How do I get mdtool to build an iOS archive that is as small as the Xamarin Studio's menu option (Build > Archive)? I've got a project build archives from script that are coming out much larger than what Xamarin Studio is producing manually from the…
patridge
  • 26,385
  • 18
  • 89
  • 135
4
votes
1 answer

Using Xamarin.UITest with MvvmCross Binding

I'm using the Xamarin.UITest framework to assert if some button is disabled or enabled. Unfortunately it seems that this is not working if the "Enabled" Property of the button is set via binding trough MVX (binding is working - button is really…
Michael Probst
  • 111
  • 2
  • 8
4
votes
2 answers

How to Add Local Nuget Package Source in Xamarin Studio on Mac?

We have our Local Nuget Setup which in on a Network path is like //10.10.9.32/Microsoft/Nuget/ When I Configure New Source in Visual Studio. It configured correctly and working Fine But When I am configuring Same Source on the Xamarin Studio on Mac.…
Waqas Idrees
  • 1,443
  • 2
  • 17
  • 36
4
votes
1 answer

View controller with background image and transparency xamarin

I kind of stuck with a design issue in iOS. I have a controller with a background image, nothing special. this.View.BackgroundColor = UIColor.FromPatternImage (UIImage.FromFile ("Images/ballons.jpg")); On top of the controller I have a view with a…
Grendizer
  • 2,173
  • 3
  • 16
  • 18
4
votes
4 answers

iPhone equivalent of Application.DoEvents();

iPHone: We use MonoTouch, but Obj-C answers are ok. My singleton domain object takes a while to get all the data so it runs internally parts of the fetch in a thread. I need to inform the UI that the domain is done. Currently I do this. Is there…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
4
votes
1 answer

Create a git post-receive trigger (should work for Xamarin Studio on Mac OS X)

I have a network share on which a GIT repository resides in. On my local machine I have checked out the GIT repository, where I'm working on with Xamarin Studio with the integrated GIT client. Additionally, I have installed Jenkins for continuous…
testing
  • 19,681
  • 50
  • 236
  • 417