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

Memory/resource management using MonoTouch and MonoTouch.Dialog

I have a MonoTouch app that has a UITabBarController, with each of the tabs being a UINavigationController. Some of these wrap a UIViewController which adds a UITableView and a UIToolbar, and others wrap a DialogViewController. I've not paid much…
Omri Gazitt
  • 3,428
  • 2
  • 21
  • 27
18
votes
1 answer

How to programmatically select a row in UITableView in MonoTouch?

I know you can select a row in a UITableView by calling UITableView.SelectRow function, but I'm having trouble to construct the first parameter NSIndexPath for the given row number. This is the code I tried: NSIndexPath path = new NSIndexPath() {…
newman
  • 6,841
  • 21
  • 79
  • 126
18
votes
2 answers

UIView with rounded corners: how to clip subviews correctly?

I created a subclass of UIView that overrides drawRect: and uses AddArcToPoint() to draw rounded corners. (I don't want to use the layer's corner radius property because I need to define which corners have to be rounded.) The problem I cannot get…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
18
votes
5 answers

Mono for iOS/Android Open or Closed? Paid or Free?

I am attempting to learn more about mobile/tablet development and, as a .NET developer, I am naturally drawn to Mono. But I am confused--I thought that Mono was free and open source; however, all signs seem to point to Mono being a "pay-to-play"…
Matt Cashatt
  • 23,490
  • 28
  • 78
  • 111
18
votes
8 answers

Xamarin.ios Error MSB6006: "codesign" exited with code 1

When trying to test my app on my device iPhone, I get the following error, I think it's something about registering my device. /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(3,3): Error MSB6006:…
Jimmy Jouvin Soria
  • 181
  • 1
  • 1
  • 3
18
votes
3 answers

How to change TabBar and NavigationBar colors in Xamarin Forms?

I have a Xamarin Forms application and I am currently working on code for an iOS. In my settings I have an option to change the application's theme (Dark and Light). This basically just changes the background colors and text colors of the pages. Now…
user6742877
18
votes
3 answers

How to prevent a label in a stack layout from getting cut off

I've got two labels next to each other. The first is pretty long and should get truncated if necessary. The second should be displayed completely - no matter what. This is my code: MainPage = new ContentPage { Content = new StackLayout { …
Falko
  • 17,076
  • 13
  • 60
  • 105
18
votes
4 answers

Xamarin fails to deploy iOS app to iOS Device

I am trying to deploy my Xamarin iOS app to iPhone. But it fails to deploy into iPhone devices where as it works fine in Simulators. I verified that Bundle Identifier and Provisioning Profiles are matching. Also I deployed another test app into…
18
votes
3 answers

How to remove or hide Toolbar item in specific page error: System.IndexOutOfRangeException: Index was outside the bounds of the array

I am trying to Remove() or Clear() ToolbarItems. Here is my code where I am creating ToolbarItem in MainPage.cs public partial class MainPage : MasterDetailPage { public ToolbarItem cCounter = new ToolbarItem() { Icon = "picture.png" }; …
BinaryTie
  • 281
  • 1
  • 21
  • 49
18
votes
7 answers

How can I force Localization Culture to en-US for whole applicaiton in Xamarin

How to force Xamain - Android / iOS to work in US English culture regardless of user setting. The issue I am facing in my application is, The app only support US/UK English, But if the user changes the langue preference to Spanish , German etc. The…
Stephan Ronald
  • 1,395
  • 2
  • 14
  • 39
18
votes
2 answers

Auto Layout proportionally Scaling Views

I have already found several questions and answers about this topic but I simply cannot get this to work for me. The blue rectangle is a UIView which contains the Test Label and Gear image button. The red one is a second UIView. What I'd like to do…
Ertay Shashko
  • 1,247
  • 2
  • 12
  • 21
18
votes
3 answers

Type.GetProperties() missing in Xamarin PCL

In Xamarin PCL, I'm trying to get the System.Reflection.PropertyInfo of a class I've written so that I can access its properties by their string name to get/set, and Type.GetTypeInfo() is missing, as well as Type.GetProperties. But…
user1054922
  • 2,101
  • 2
  • 23
  • 37
18
votes
6 answers

How to get/detect screen size in Xamarin.Forms?

I am trying to rewrite an app that I wrote for iOS. I was going to write an android version but thought It'd be better to make this the opportunity to use Xamarin.Forms. Doing it one page at a time, now I'm stuck on a page where I need to get the…
dmc
  • 807
  • 2
  • 10
  • 25
18
votes
7 answers

Add view over tableview (UITableViewController)

Situation: I've got a UITableViewController loading some data asynchronously from a service. During this time I would like to place a full screen (except navigation bar) view over the table view showing my custom indicator and text. Problem: The…
Mittchel
  • 1,896
  • 3
  • 19
  • 37
18
votes
3 answers

Build Configurations and Bundle Identifier

Is there a way to set the 'iOS Application Target Bundle Identifier' per 'Build Configuration' in Xamarin? In XCode you can do that, which means that the same base code can be compiled for different enterprise customers (our case). Xamarin Studio…
rufo
  • 5,158
  • 2
  • 36
  • 47