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

Strange error about type defined multiple times with PCL

I have Xamarin.Android, Xamarin.iOS and Windows Phone 8 applications, both referencing common PCL library. Inside this library I am using HttpClient, and because WP8, I need nuget package Microsoft.Net.Http.2.2.22 Without enabling compression on…
rouen
  • 5,003
  • 2
  • 25
  • 48
4
votes
1 answer

AudioSessionSetProperty in Xamarin / Monotouch

I'm trying to do the following AudioToolbox AudioSessionSetProperty in Xamarin. UInt32 allowBluetoothInput = 1; error = AudioSessionSetProperty ( kAudioSessionProperty_OverrideCategoryEnableBluetoothInput, sizeof (allowBluetoothInput), …
Dicer
  • 396
  • 6
  • 13
4
votes
1 answer

How do i call async method from a button

I am trying to call a aysnc method using latest xamrian in alpha using story board designer but i cant seem to call the method from a button click that has been declared by the desginer. CS async public void Createuser () { var user =…
c-sharp-and-swiftui-devni
  • 3,743
  • 4
  • 39
  • 100
4
votes
2 answers

Xamarin Linker : Default constructor not found for type Cirrious.CrossCore.IoC.MvxPropertyInjector

With a skeleton project with FirstView from HotTuna package, and with Build linker behavior set to "Link all assemblies", I get the following error: System.MissingMethodException: Default constructor not found for type…
Rana Hossain
  • 415
  • 4
  • 11
4
votes
3 answers

Monotouch - make UIView scrollable

I have a view with 4 text boxes and and a logo at the top - when the user is entering information the text pad covers up some of these controls, how can I make the view scroll so that this isn't an issue. I have tried adding the view to a…
user156888
4
votes
0 answers

UIPageViewController with UITableViewControllers throws NSInternalInconsistencyException

I am using Xamarin IOS and trying to implement a UIPageViewController with some existing UITableViewControllers in my app. However it is throwing this error whenever I try to crreate the UIPageViewController with the…
startupsmith
  • 5,554
  • 10
  • 50
  • 71
4
votes
1 answer

Can't Create Portable Class Library Project with Xamarin.Android / Xamarin.iOS

I'm unable to create a new Portable Class Library project which targets either the Xamarin.Android or Xamarin.iOS frameworks. When I do so, I get an error message that says there is no available functionality that is portable between the frameworks…
4
votes
2 answers

MvvmCross - Flyout Navigation, Hamburger Menu, Sliding Menu for Android and iOS

Summary I'm looking to have a single MvvmCross solution for iOS and Android that implements FlyoutNavigation/hamburger menu/sliding menu for the navigation. Sample Code https://github.com/benhysell/V.FlyoutTest Problem The Android project works…
ben
  • 3,126
  • 3
  • 37
  • 51
4
votes
1 answer

How to do IBOutlets in MonoTouch?

I have done one iPhone app in Objective-C. When I want to link a Label to some data in that I would declare it like this: @interface CityDetailViewController : UIViewController { UILabel *cityName; } @property(nonatomic, retain) IBOutlet UILabel…
James P. Wright
  • 8,991
  • 23
  • 79
  • 142
4
votes
2 answers

How do I add an UIView above a TableViewController

I would like to display an UIView above my tableview, for testing purposes I have used a Searchbar (to eliminate any possible problems with my code). My setup: Tab bar controller     MyCustomTableViewController         View             TableView…
Jimmy Engtröm
  • 1,998
  • 4
  • 23
  • 34
4
votes
2 answers

Debug async code in Xamarin iOS

I seem to be unable to debug any code which uses the async keyword. Does anyone have any idea to solve this? I am completely clueless. I tried different linking settings as suggested by several people, however without success. Any breakpoint before…
Yoeri
  • 2,249
  • 18
  • 33
4
votes
2 answers

Xamarin iOS, UITableView, Scroll to load more

Can you please share code snippets or direct me to the xamarin docs, how to implement UITableView, scroll to load more functionality. How to detect if the tableview has scrolled to the bottom? Thanks in advance!
coder284
  • 831
  • 1
  • 13
  • 34
4
votes
0 answers

How do I show an iOS UIPopover in MvvmCross?

After a long time I have returned to this problem, but I have now completely rephrased the question with a (hopefully) better example. I have an iOS splitview app with accounts and contacts. Each account can have multiple contacts. On the master…
Decept
  • 87
  • 5
4
votes
1 answer

can not override GetRendererForOverlay on monotouch

I want to draw an overlay on top of my MKMapView So I defined this delegate class for defining the view of overlays. but as you can see it seems that from iOS 7 it is recommended that we use GetRendererForOverlay instead of GetViewForOverlay. The…
Husein Behboudi Rad
  • 5,434
  • 11
  • 57
  • 115
4
votes
1 answer

xamarin.ios datetime crashes on device

I made a very simple Xamarin.iOS app but my app crashes immediately when i launched it on the device: iPhone 4 and iPhone 5. In the simulator and on the iPhone 5s device it works correctly. Whenever I use a DateTime object my app crash. I use…
Andy
  • 99
  • 7
1 2 3
99
100