Questions tagged Uncategorised

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

How to set UIDatePicker background color to white in xamarin.ios for ios 14?

I am hiding a label by a UIDatePicker in a xamarin.ios app. I changed the style of the datepicker label but can’t change the background to white. Here is my code: datePickerDateFrom.Frame = lblFromDate.Frame; datePickerDateFrom.Subviews[0].Subviews[0].SetValueForKey(UIColor.White, new NSString("backgroundColor")); datePickerDateFrom.Subviews[0].Subviews[0].TintColor = UIColor.Black; datePickerDateFrom.Subviews[0].Subviews[0].Layer.BorderWidth = 1; datePickerDateFrom.Subviews[0].Subviews[0].Layer.CornerRadius = 6; datePickerDateFrom.Subviews[0].Subviews[0].Layer.BorderColor = UIColor.FromRGB(0, 184, 212).CGColor; datePickerDateFrom.SizeToFit(); Add(datePickerDateFrom); And the […]

By Robin Khan
Published
Categorised as Uncategorised Tagged

xamarin – image is not displaying in release

I am using xamarin.forms and visual studio following code works fine in debug or release mode. image shows up just fine. companyLogo_white.svg is inside my shared project and build-action is embedded resource issue: I than launched this app on playstore. Issue is that this image doesn’t get displayed. i have no idea as to what […]

By stacker
Published
Categorised as Uncategorised Tagged , , , ,

Why the ScrollView is not working inside FlyoutHeaderTemplet?

<Shell.FlyoutHeaderTemplate> <DataTemplate> <ScrollView> <StackLayout> ………………………………. <StackLayout/> <ScrollView/> </DataTemplate> </Shell.FlyoutHeaderTemplate> There is a lot of content inside the StackLayout which is being cut off. Source: Xamarin.ios Questions

Xamarin.Forms iOS build error Object reference not set to an instance of an object

I currently created a new Xamarin.Forms project using VS 2019 in my PC, installed some nuget packages and after building the project i got .nugetpackagesxamarin.build.download{$content}.10.0buildTransitiveXamarin.Build.Download.targets(52,3): error : Object reference not set to an instance of an object. from the iOS project. I checked the Error log file attached to my repo folder in my PC […]

Add mtouch argument Xamarin.iOS

Where to add the code for Xamarin.iOS to remove dynamic registrar. –optimize=[+|-]remove-dynamic-registrar to mtouch/mmp. Im getting the error "Can’t register the class WebP.Touch.WebPDecoder when the dynamic registrar has been linked away in Xamarin.iOS" I found from MS document to remove dynamic registrar – https://docs.microsoft.com/en-us/xamarin/cross-platform/macios/optimizations#remove-the-dynamic-registrar Can anyone help me where/how to add this code in Xamarin.iOS […]

By Nandha
Published
Categorised as Uncategorised Tagged

How to make a UIDatePicker label invisible still interactive in Xamarin.ios?

I need to open a UIDatePicker programatically in my Xamarin.ios project. Unfortunately it is not allowed and there is no public api. But I got some tricks which are native code from Open UIDatePicker programmatically in iOS 14 I am trying to implement this trick: https://stackoverflow.com/a/65430977/13026962 I managed to add a UIDatePicker on top of […]

By Robin Khan
Published
Categorised as Uncategorised Tagged , , ,

Using Materialpickerrender once pick and cancel button Title shows top in Xamarin forms

We are using visual material picker control in our app. If I select anything from the picker popup title shows the top and selected value below. If I click cancel from the picker popup title also shows top. It should be in the default state. How to resolve this xamarin forms android and ios? internal […]

By newxamarin
Published
Categorised as Uncategorised Tagged , , ,

How use iOS AppTrackingTransparency.ATTrackingManager from cross-platform PCL?

So yesterday this line: ATTrackingManager.RequestTrackingAuthorization((status) => { if (status == ATTrackingManagerAuthorizationStatus.Authorized) { } was working code (in my cross-platform Xamarin.Forms PCL). Today xamarin.ios received an update. In the PCL project, the tracking manager is not found anymore. Intellisense doesnt know what it is anymore and I cannot debug the app. It is recognized in the […]

By innom
Published
Categorised as Uncategorised Tagged ,

How to Trigger event Cancel Button on SearchBar Xamarin Form

Xamarin Form View Model can trigger the onTextChange Event for Searchbar but there is no Event handler for OnCancelButtonClicked. What I want: An Event should be Triggered whenever Cancel/Close Button is clicked as below. Source: Xamarin.ios Questions

WebSocket in Background transfer and NSURLSession in Xamarin.iOS

I am looking into creating a Xamarin.iOS app that can connect to a WebSocket server when the app is backgrounded or suspended. The app is expected to close the channel once it receives a certain ‘close’ message from the server. As per Apple’s documentation, NSUrlSession allows to create a WebSocket task for the provided URL. […]

By theTruthIsOutThere
Published
Categorised as Uncategorised Tagged , , , ,
1 3 4 5 6 7 94

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