Questions tagged xamarin.ios

Explore the latest questions and answers asked by our top developers.

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 popToRootViewController is made (in which case, I would ideally be able to clear […]

By cain
Published
Categorised as Uncategorised Tagged , ,

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 design was done in Xcode below is a screen shot […]

By JDibble
Published
Categorised as Uncategorised Tagged , , , ,

Setting custom font on all UIButtons

I want to apply a custom font to all buttons in my iOS app i’ve created in Xamarin. I’ve achieved the custom font on labels with the previous code: //Labels UILabel.Appearance.Font = UIFont.FromName(“Lato-Light”,16f); …which affects some but not all buttons for some reason. Then I tried targeting the label on the button like so: var […]

By cheriana
Published
Categorised as Uncategorised Tagged , , ,

How can I create right-aligned items in the ui with Xamarin.Forms?

I try create this page with StackLayout and Grid, but I can’t align rightы controls to right side. Maybe I should use RelativeLayout? But I don’t know how align controls to right side this is my page: http://s9.postimg.org/z5ilck6hb/template.png UPD. I solved this problem by putting StackLayout with HorizontalOptions = LayoutOptions.EndAndExpand to each grid cell (in […]

By Brian
Published
Categorised as Uncategorised Tagged , , , ,

Android Toast equivalent in iOS

Does anyone know what the Java Toast equivalent of this iOS Objective C event would be in a Fragment? Below is a sample of what I have written in iOS. What I am looking for the same Alert in Java using a Toast in place of the iOS UIAlert. I am sorry if I did […]

By Bil Kimes
Published
Categorised as Uncategorised Tagged , , , ,

UIImagePickerController AllowsEditing not working

I am using UIImagePickerController to allow the user to take a picture. I want to allow him/her to edit it afterwards but, whatever I do, I get nothing. Here is my code (I am using Xamarin): UIImagePickerController imagePicker = new UIImagePickerController (); // set our source to the camera imagePicker.SourceType = UIImagePickerControllerSourceType.Camera; // set what […]

By Amit Raz
Published
Categorised as Uncategorised Tagged , , , ,

Hiding the Navigation Bar in Xamarin Project using Mvvmcross

I’m using mvvmcross and implementing the view’s interface in code behind. I would like to hide the navigation bar but I have not found a solution yet. I tried NavigationController.SetNavigationBarHidden(true, false); and NavigationController.NavigationBarHidden = true; in different methods (ViewDidAppear and ViewWillAppear) but they don’t have an impact on the UI. Maybe someone could give me […]

By Cray
Published
Categorised as Uncategorised Tagged , ,

How iOS UITableView under NavigationBar?

I have set NavigationController.NavigationBar.Translucent = true; Then add table and set frame to RootView Frame, and: public override void ViewDidLayoutSubviews() { base.ViewDidLayoutSubviews(); float y = this.TopLayoutGuide.Length; table.ContentInset = new UIEdgeInsets (y, 0, 0, 0); } But, I Have table Scroll Bar under NavigationBar (I use monotouch): Source: Xamarin.ios Questions

By Dmitriy
Published
Categorised as Uncategorised Tagged , , , ,

Entitlements file "Entitlements.plist" not found. error

I am trying to run a simple app on an iPod touch. The code complies and runs on the emulator just fine, but as soon as I try to run it on the device I get the error above. I have run other applications this way and have tried different provisioning profiles. The Entitlements file […]

By Andy J
Published
Categorised as Uncategorised Tagged , ,

Invalid Executable Size – From iTunes Connect

I am uploading my iOS application on iTunes. I am using MonoTouch for compiling my LibGdx Game for iOS. In Android it is hardly 7-8mb. But When I upload on iTunes AppStore then its goes to 78 mb. I dont know why ? Please Let me know. I have also received this error from Apple. […]

By user831413
Published
Categorised as Uncategorised Tagged , ,
1 56 57 58 59

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq