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

MonoTouch.Dialog: Dismissing keyboard by touching anywhere in DialogViewController

NOTE: There are two similar SO questions (1) (2), but neither of them provides an answer. TL;DR: How can one dismiss the keyboard in a MonoTouch.Dialog by letting the user touch any empty space in the view? I'm writing an app using MonoTouch.Dialog…
Mike Lorenz
  • 942
  • 6
  • 13
15
votes
3 answers

Fullscreen: AVPlayerLayer is not resized when resizing its parent view

I am developing a video player with the AVPlayer API from AV Foundation in MonoTouch (but a solution in objective-c could be nice too). I am trying to implement a fullscreen mode. To display the video frames, I have a UIView (let's call it playback…
nicolas
  • 489
  • 1
  • 3
  • 22
15
votes
3 answers

Debugging JSON.NET

I'm using JSON.NET to deserialize some JSON returned from a web service. Unfortunately, i'm getting the following err: Cannot deserialize JSON array into type 'System.Collections.Generic.Dictionary`2[System.String,System.String]'. but i have no…
bryan costanich
  • 1,719
  • 6
  • 20
  • 33
15
votes
2 answers

iPhone app gets into a state where network requests never complete

Every so often, my iPhone app gets into a state where network requests always time out, even if other apps work fine (and can even access the same sites). This isn't obviously correlated with changes in network availability, and happens both on 3G…
David Moles
  • 48,006
  • 27
  • 136
  • 235
15
votes
3 answers

How I can call a javascript function with MonoTouch and vice versa?

i'm new using monotouch. My problem is i want call a javascript function from a monotouch function and javascript function could call a monotouch function too. I believe that with objective c this problem is possible, but i need making it with…
user672206
  • 151
  • 1
  • 1
  • 3
15
votes
4 answers

Generating the IPA file of my Xamarin App without an iOS device

I have created a Xamarin Forms App for both Android and iOS devices from Visual Studio 2017 and Windows. To test and build the iOS app, I have used a Mac with Xamarin Mac Agent. Now I have to build an IPA file for internal testing, however I'm…
ganchito55
  • 3,559
  • 4
  • 25
  • 46
15
votes
2 answers

Has anyone successfully built Xamarin.Forms with gitlab-ci?

I am working on a pet project with Xamarin.Forms and am wondering if anyone has had experience with configuring gitlab-ci.yml builds successfully. There seems to be limited material on configuring for .NET builds in general, trying my luck at…
Shazbot
  • 1,444
  • 1
  • 11
  • 21
15
votes
2 answers

Density of screen in iOS and Universal WIndows App

Hi I need to know the density of screen in windows 10/8/8.1 and iOS. I got screen density in Android using DisplayMetrics but I find no such option/property available in UWP and iOS. So Is there any property through which I can get screen density in…
Sonali
  • 2,223
  • 6
  • 32
  • 69
15
votes
5 answers

ERROR ITMS-90085: “No architectures in the binary. Lipo failed to detect any architectures in the bundle executable.”

We have built a Xamarin app (iOS, Android) with several native bindings. The app runs fine on device and simulator and we are able to build an archive without any issues (apparently). The issue is when we want to upload the build to the app store…
Anthony Janssens
  • 211
  • 1
  • 2
  • 8
15
votes
2 answers

Using Thread.Sleep in Xamarin.Forms

I want to execute the following MainPage = new ContentPage { Content = new StackLayout { Children = { new Button { Text = "Thread.Sleep", Command = new Command(() => …
testing
  • 19,681
  • 50
  • 236
  • 417
15
votes
7 answers

why does xamarin suddenly not let me deploy to iOS devices

This just started happening today after I got a message from xcode to agree to new t&c's. I can't put anything on the device, on any of my computers. Doesn't work on my macbook, doesn't work on my mac mini, doens't work with existing projects that…
Infrid
  • 336
  • 1
  • 3
  • 13
15
votes
2 answers

Toolbar item not showing in xamarin forms

I am pretty much new to Xamarin forms. I am trying to add toolbar items to content page. I am using IPAD Air as deployment device and used sever iPhone/ipad simulators as well. I referred the XamarinForms-Mobile App pdf document. Though its a…
siva Rapolu
  • 409
  • 1
  • 8
  • 20
15
votes
6 answers

IoC library compatible with MonoTouch?

Still getting familiar with the limits of MonoTouch. Is there an IoC/DI library that can be used with MonoTouch. Something like Ninject ideally?
15
votes
5 answers

Access ViewController in DependencyService to present MFMailComposeViewController

How can i access the ViewController in my DependencyService to present a MFMailComposeViewController? I tried using Application.Context but this seems to be only working on Android. Any advice?
FrTerstappen
  • 220
  • 1
  • 4
  • 10
15
votes
3 answers

Localization for mobile cross platform using xamarin and issue with iOS only

I have a project in Xamarin which targets Android, iOS and windows phone. I used core (PCL library) to share common code between different platform. I added Resource files (.net resource) .Resx in my core library and to read the culture specific…