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
15
votes
5 answers

Create NSDate Monotouch

I am trying to take a date string and turn it into a specific NSDate (eg. July 1, 1981), but I don't see and methods for setting the date. Does anyone know how to accomplish this? Perhaps convert a DateTime object to NSDate?
Bryan
  • 17,201
  • 24
  • 97
  • 123
15
votes
2 answers

Xamarin + JSON.Net

I'm having trouble understanding why the Newtonsoft JSON parser has to be device specific under Xamarin. I cannot seem to find any way to have the parser exist in a common, shared library. I'm using the Tasky Pro sample app. I can get the JSON.Net…
Steve Macdonald
  • 1,745
  • 2
  • 20
  • 34
15
votes
4 answers

Logging framework on Xamarin iOS

What's the state of logging on Xamarin.iOS (using Xamarin Studio Indie). I've tried using NLog, but it references System.ServiceModel - so Xamarin complains that I need business edition (not paying that much just to use NLog!) log4net also doesn't…
Adam
  • 4,159
  • 4
  • 32
  • 53
15
votes
4 answers

A simple UIPickerView in MonoTouch (Xamarin)?

Can anybody describe how I can create a UIPickerView in monotouch using XCode and populate it with sample data? I did look at the example here:…
P. Sami
  • 2,115
  • 2
  • 21
  • 39
15
votes
2 answers

Difference between Monocross & Monotouch (xamarin)?

i am right now exploring the capabilities of Monotouch (by Xamarin) with other solution such as Monocross? So can any one explain when to use Monotouch and when to Monocross. What is the advantage & disadvantage of these framework w.r.t native app…
user1227928
  • 831
  • 1
  • 12
  • 27
14
votes
1 answer

How implement Push Notifications firebase xamarin.ios c#

I'm developing an application that works on the iPhone through the xamarin.ios with firebase backend. I want Push Notifications FCM Firebase, but I couldn't, I want that code in AppDelegate.cs
14
votes
2 answers

B2C Popup on iOS: "My App" Wants to Use "b2clogin.com" to Sign In

After upgrading Microsoft.Identity.Client within Xamarin.Forms from 1.x to 4.x, most things work much the same. However, login to iOS results in a popup that says: "My App" Wants to Use "b2clogin.com" to Sign In This allows the app and website to…
Lamarth
  • 506
  • 4
  • 12
14
votes
2 answers

Monotouch Global Exception handling

I am having a nasty bug show up in the wild, and I can't put my finger on it. Is there a way to have a Global Try/Catch block, or a way to handle any exception that is unhanded in Monotouch. Can I just wrap UIApplication.Main(args) in a try…
Chris Kooken
  • 32,730
  • 15
  • 85
  • 123
14
votes
1 answer

Custom Keyboard in Xamarin forms

I've read the many posts on the forum and on StackOverflow and other places on making custom keyboards, but have not found an approach that will work for my Xamarin forms cross-platform project. It is programmatically generated. For example, I built…
Ziyad Godil
  • 2,620
  • 1
  • 14
  • 36
14
votes
2 answers

OneSignal: How to Handle notificationOpened in AppDelegate of a Xamarin.Forms app?

I am working on implementing OneSignal push-notification in Xamarin.Forms. I need to pass the string returned by OneSignal AdditionalData into the constructor of App(). So I used HandleNotificationOpened(OSNotificationOpenedResult result) for…
Apoorv Mehrotra
  • 607
  • 5
  • 13
14
votes
3 answers

How to bind the values of the itemsource (array of strings) to a label in a ListView

I have an array of strings, that I have set as the item source of a ListView. The ListView now has the same amount of rows as the array has elements. However I don't know what to set the binding as. I know for a Dictionary I set 'Value' which works…
james
  • 171
  • 1
  • 1
  • 10
14
votes
1 answer

Xamarin.Forms.Navigation.PopAsync() Does Not Pop Page

In Xamarin.Forms, when we use Navigation.PopAsync(), the page does not pop in iOS. After PopAsync() the same page remains.
Chetan Rawat
  • 174
  • 1
  • 3
  • 10
14
votes
2 answers

Xamarin iOS Failed to Install

I am a Window user so to work with Xamarin I borrowed a Mac. After installing Xamarin and it's components on Mac I am able to connect it with my windows machine but when I run the debugger for running the application I get following error Please…
Manoj Sethi
  • 1,898
  • 8
  • 26
  • 56
14
votes
3 answers

Can you detect when a UIViewController has been dismissed or popped?

I have some cleanup that needs to be performed in a shared resource any time one of my view controllers is dismissed/popped/unloaded? This could either be when the user hits the back button on that individual screen or if a call to…
cain
  • 1,028
  • 1
  • 12
  • 26
14
votes
2 answers

iOS Application Doesn't Fill iPhone Screen

I am writing an iPhone app using Xamarin. My UIViewController does not fill the entire screen, there is a gap above and below. Here is a screen shot from the simulator. I have changed the colour scheme to make the gaps more obvious The screen…
JDibble
  • 744
  • 1
  • 8
  • 25