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

Xamarin forms Navigation not releasing Memory

I'm new to Xamarin.Forms using Xamarin.forms(version 2.0.0) and I get stuck in an Issue where my Application is getting Crash again and again due to memory leak. I suspect that is because When navigating a page off of a navigation stack, the memory…
user3087365
  • 121
  • 1
  • 7
4
votes
2 answers

Xamarin memory profiler object growth understanding

I have a large Xamarin iOS app which is suffering from random crashes - which I believe to be due to memory issues. Before trying to fix the issues I am trying to ensure I fully understand how to correctly dispose of everything so I have created a…
Joseph
  • 2,706
  • 6
  • 42
  • 80
4
votes
1 answer

Xamarin forms block user back key press

In my Xamarin forms application I want to show a confirmation message when user clicks the back button from Main-page. Is there any way to achieve this? I overrided the OnBackButtonPressed method in my MainPage. But still the app is closing while…
Aneesh.A.M
  • 1,128
  • 4
  • 17
  • 35
4
votes
1 answer

Parent UIView not resizing after constraint.constant on UILabel changed

UPDATE Now Solved The problem was that when I was updating the bottomConstraint I was setting the Constant to the bottom padding property. Sounds reasonable but of course the Constant should have been set to 0 - BottomPadding. That explains why the…
Pat Long - Munkii Yebee
  • 3,592
  • 2
  • 34
  • 68
4
votes
2 answers

Installed date for an iOS app using Xamarin

Is there a way to find the date an app was installed on a device using Xamarin.iOS?
spmoolman
  • 403
  • 8
  • 20
4
votes
0 answers

xamarin ios app doesn't list in installed apps in settings

I have a Xamarin Forms app, I've already released it for android and now it is iOS turn, but I have some platform specific problems, I'd like to debug them, but I can't, I found that I need to turn it on from settings, where all installed apps are…
animekun
  • 1,789
  • 4
  • 28
  • 45
4
votes
1 answer

How to toggle between Play/Pause in MPRemoteCommandCenter

I dont know how to toggle the play and pause button. I have tried TogglePlayPauseCommand. But it is not working.
Neha Gupta
  • 291
  • 2
  • 18
4
votes
2 answers

How to test everything in Xamarin

So i've recently started using Xamarin.UITest in my mobile application. Its great for testing the UI, navigation etc. However im slightly confused as to how the best way is to test all the other parts of the app i.e the database, web connection,…
4
votes
1 answer

RemoveTarget from UITapGestureRecognizer

I've added an action as anonymous method to my gesture recognizer UITapGestureRecognizer tapGesture = new UITapGestureRecognizer (); tapGesture.AddTarget (() => HandleTap (tapGesture)); How can I remove the target? UIGestureRecognizer.Token is…
testing
  • 19,681
  • 50
  • 236
  • 417
4
votes
2 answers

Add/remove EventHandler for UIBarButtonItem

One can define an EventHandler in the constructor: UIBarButtonItem logoutButton = new UIBarButtonItem (UIBarButtonSystemItem.Stop, logoutButtonEventHandler); private void logoutButtonEventHandler(object sender, EventArgs args){ …
testing
  • 19,681
  • 50
  • 236
  • 417
4
votes
4 answers

Cannot add the Signalr Client library as a portable library to a Xamarin project

I have tried adding the Signalr Client library and the WebApi client package to my Xamarin Solution (on Visual Studio with Xamarin Support and also on Xamarin Studio) but I always get this error although I am able to install other PCLs (for example…
goodolddays
  • 2,595
  • 4
  • 34
  • 51
4
votes
2 answers

Azure Mobile Service client query not returning control back to Xamarin Form android client app

I am using Azure Mobile Service with Xamarin Form Android application to mostly query data from the azure table storage. The current problem what I am facing is the azure mobile service client is not returning the control back right after the mobile…
4
votes
3 answers

Execute Task.Run on main thread

I am using monotouch/Xamarin for an iOS app. The documentation for Task.Run states: Queues the specified work to run on the ThreadPool and returns a task handle for that work. Which essentially indicates that it could run on any thread…
Kostub Deshmukh
  • 2,852
  • 2
  • 25
  • 35
4
votes
2 answers

UITextField null from different class

I have the class public ViewController1 (IntPtr handle) : base (handle){} Inside the ViewController1.designer.cs I have registered a UITextField [Outlet] UIKit.UITextField _textField { get; set; } Here's where I am struggling: I have another…
jipot
  • 304
  • 3
  • 13
  • 34
4
votes
1 answer

Xamarin: Binding objective c protocols that return protocols

I have the following 2 protocols in my app: @protocol DisplayItem - (void) itemSelected:(NSString*) itemId; @end @protocol DisplayerFactory - (UIViewController*) createItemDisplayer; @end I use Objective…
Kostub Deshmukh
  • 2,852
  • 2
  • 25
  • 35