/r/xamarinios
Subreddit for Xamarin iOS developers
/r/xamarinios
I'm experiencing a freeze issue in Xamarin.Forms iOS SDK version 14.0 after updating to iOS 18. When I open the app, a modal for notifications appears. I can interact with the modal just fine, but once I close it, the app freezes and becomes unresponsive. I can't click anywhere. The only workaround I've found is switching to landscape mode and back to portrait, which unfreezes the app. However, the issue persists each time I relaunch the app. Has anyone else encountered this, or know of a fix?
public override void WillPresentNotification(UNUserNotificationCenter center, UNNotification notification, Action<UNNotificationPresentationOptions> completionHandler)
{
// Do something with the notification
Console.WriteLine("Active Notification: {0}", notification);
var toolVC = new FindVC(new IntPtr());
// You need to access the navigation controller to perform navigation.
// Assuming your AppDelegate has a reference to the navigation controller.
var navigationController = (UIApplication.SharedApplication.Delegate as AppDelegate).Window.RootViewController as UINavigationController;
navigationController.PushViewController(toolVC, true);
completionHandler(UNNotificationPresentationOptions.Alert);
}
This code for in in app notification when i sent notification open this findVC that findVC is my viewController and this above code i write in App Delegate and that code give me this Error
System.ObjectDisposedException: Cannot access a disposed object. Object name: 'PackageName.FindVC'.
I'm using a Label with Spans, one of them is a link and I want to add an underline style, I'm using <Span Text="{Binding AcceptTermsAndConditionText\[1\]}" TextDecorations="Underline" />
but it is not working in iOS with "Xamarin.Forms" Version="5.0.0.2401"
.
I have tried to add an effect but all the properties needs to be set again (Styles, touch events, etc...).
PowerShellCopy
<Label> <Label.FormattedText> <FormattedString> <Span Text="{Binding AcceptTermsAndConditionsText[0]}" TextColor="{DynamicResource PrimaryContentTextColor}" FontSize="16" /> <Span Text="{Binding TermsAndConditionsText[1]}" TextColor="{DynamicResource PrimaryContentTextColor}" TextDecorations="Underline" FontSize="16" FontAttributes="Bold"> <Span.GestureRecognizers> <TapGestureRecognizer Command="{Binding TermsAndConditionsCommand}" NumberOfTapsRequired="1" /> </Span.GestureRecognizers> </Span> <Span Text="{Binding AcceptTermsAndConditionsText[2]}" TextColor="{DynamicResource PrimaryContentTextColor}" FontSize="16"/> <Span Text="{Binding AcceptTermsAndConditionsText[3]}" TextColor="{DynamicResource PrimaryContentTextColor}" TextDecorations="Underline" FontSize="16" FontAttributes="Bold"> <Span.GestureRecognizers> <TapGestureRecognizer Command="{Binding PrivacyPolicyCommand}" NumberOfTapsRequired="1" /> </Span.GestureRecognizers> </Span> </FormattedString> </Label.FormattedText> </Label>
I have been a junior Xamarin iOS developer for 4 months. C# is very good language. However Xamarin is a little bit messy and the community is smaller compared to native platform. Every iOS job description requires experience of objective C or Swift. I'm not sure if I will be able to change to another iOS role.
Hey I'm new to development and I am having an issue with the ios Simulator. Every time i try and run my code of the simulator it takes forever to boot up and then fails to boot. Its aweful for debugging. I am developing on a windows 10 machine and simulating it on a mac mini 2014 model. I have upgraded the mac to run iOS 12 and upgraded XCode to the latest version 13.4.1. I have 8gb of ram, and didn't have any problems before the upgrade. Any recommendations for how to make it boot faster and actually work while I debug?
Does anyone have an idea on how I can achieve this in xamarin.ios and not xamarin forms?
Hi guys I'm having difficulty switching UISegmentedControl, how do i do that please?
Set image using View.Add(imageView) that time set image on the full screen but my requirement is set to image on perfect one section.
So you just finished developing your app, you’d like to test it, and so you start distributing it to your users or testers, they discover bugs in your app, but the feedback process is tedious, and never gives you enough data. This is what Instabug exactly is for. Instabug's SDK provides you with an intuitive bug and crash reporting solution. you find a bug, shake the phone, Instabug pops up with a screenshot that you can draw on, then hit send. You'll then get complete device details, network logs, and visual steps the user has taken so you can reproduce the bug. Crash reports are also sent to you automatically whenever a crash occurs along with complete stack trace so you could know exactly which line is causing the app to crash.
Check it out here, it's super useful.