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

Unexpected error-Xamarin iOS

Can anybody tell me why am i getting this error during compile time. Error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com (MT0000) I'm using Xamarin studio Version 4.2.3 (build 59) and Mono runtime, Mono 3.2.6…
Suchith
  • 1,276
  • 17
  • 39
4
votes
1 answer

Async/await in PCL Profile 158 targeting Android and IOS too

I have a PCL Profile 158 with Android and IOS. I also want to use async/await. I find some solutions for this problem, but I can't got it working. When I try to use await, visual/xamarin studio shows an error saying: Type…
4
votes
1 answer

iOS app works in Debug/Release/Adhoc but not when downloaded from App Store

I recently updated an app that was previously published to iOS 7. The app works fine in every case, except when it is downloaded from the App Store. Even when published to TestFlight and installed from there. The code block where it is not working…
TwoRedCells
  • 106
  • 6
4
votes
2 answers

C# Monotouch/Xamarin.iOS - UILabel with both plain and italic text in a single string

I have a string of text containing both plain and italic text. How do I represent this using a UILabel? "I am plain text whereas I am italic text var someText = "I am plain text whereas I am italic text UILabel myLabel = new UILabel(new…
Goober
  • 13,146
  • 50
  • 126
  • 195
4
votes
1 answer

Is there an easier way to set the PreferredStatusBarStyle of my app?

I'm super unhappy with the way I've had to set the EFFING UIStatusBarStyle of my app for iOS 7. Essentially I've got a custom presenter that sets up the SlidingPanels navigation (hamburger menu). Inside the custom presenter I define a…
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
4
votes
1 answer

NSRangeException when setting CurrentPageIndicatorTintColor of UIPageControl

I am trying to change the color properties of a UIPageControl object from code. However it crashes. Settning the properties from Interface Builder works just fine. The code: float x = isLight ? 0.8f : 0.2f; UIColor markedColor = UIColor.FromRGB (x,…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
4
votes
4 answers

Use Xamarin Studio on Windows to build iOS app

Is it possible to build an iOS app using Xamarin Studio running on Windows and have it connect to the Xamarin.ios Build Host running on the mac? The example I have seen only talk about using Visual Studio.
Andy T
  • 10,223
  • 5
  • 53
  • 95
4
votes
1 answer

Can Xamarin and PhoneGap be used together?

I am a newbie with cross platform mobile development tools like PhoneGap and Xamarin so please excuse me if this question appears to be stupid. My app would target Android, iOS, Windows Phone and Windows 8. I would want to maximize the amount of…
Raj Chaudhary
  • 487
  • 1
  • 5
  • 10
4
votes
2 answers

Creating a custom image filter using MonoTouch

I'm working in creating a composite image on the fly using Xamarin for iOS. I have two images, one is the base image (black and white), and the other is a alpha mask 'map' for a color filter. Then, at runtime, supply an RGB value so I can make the…
Xinbi
  • 272
  • 1
  • 2
  • 10
4
votes
1 answer

Xamarin equivalent of stringWithContentsOfFile:usedEncoding:error:

I've always found this method highly convenient. Is there a Xamarin equivalent?
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
4
votes
1 answer

How to create a custom header view for a table view section using outlets and IB

I would like to make a custom header view for a table view section in Xamarin.IOS with interface builder. However, I dont want this view to have a static content, instead I would like to create outlets, so I can modify the element's value contained…
Daniel
  • 2,484
  • 4
  • 27
  • 35
4
votes
2 answers

MonoTouch - Setting Bundle - iPhone

I am trying to create a app preference so that users can store prefs. In XCode I would click the "Settings Bundle" under New File. How do I do this in MonoTouch?
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
4
votes
0 answers

iOS NSAttributedString rounded background with color

I would like to create something similar as seen on this image: I managed to create evertyhing with NSMutableAttributedString, except the orange rounded rectangle. I can set the background to that color with BackgroundColor, but I can't find a way…
Adam Ivancza
  • 2,459
  • 1
  • 25
  • 36
4
votes
2 answers

Can't find System.Windows MvvmCross xamarin iOS

When I build for the iPhone simulator all seems to work fine. However, when I build for the iPhone, I get messages saying the following - Warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral,…
theMothaShip
  • 1,191
  • 1
  • 12
  • 24
4
votes
1 answer

How to share Xamarin.Mobile related code in a cross-platform application

I'm working on cross-platform mobile app and as I understood Xamarin.Mobile was developed in order to increase code sharing in cross-platform applications. Though I couldn't put it into PCL. What I got is platform specific implementation of each API…
1 2 3
99
100