Questions tagged Uncategorised

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

Xamarin Forms: How do I implement WebSockets?

We want to transfer data from a client to a server in realtime, so we have decided to go with WebSockets. Using Xamarin.Forms it was surprisingly difficult to find a suitable WebSocket library. The best match was “WebSocket4Net” because it is directly suggested on Xamarin’s Homepage. However I was not able to install this library, […]

By Shanakor
Published
Categorised as Uncategorised Tagged , , , ,

Xamarin warning: The app icon set "AppIcons" has 2 unassigned children

I’m getting the following warning when compiling: Warnings: /Users/some-user/Projects/SomeApp/SomeApp/SomeApp.csproj (Build) -> /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_CoreCompileImageAssets target) -> Resources/Images.xcassets: actool warning : The app icon set “AppIcons” has 2 unassigned children. 1 Warning(s) I have provided each image for the app icons (except watch/car). There is no “unassigned” value in the Contents.json file. I also tried to unset […]

By testing
Published
Categorised as Uncategorised Tagged , , , ,

Handling Global Exception Xamarin | Droid | iOS

We all know that mobile is compact platform where we have to look lots of things while building an application. It could be anything e.g. Memory Performance Resolutions Architecture Implementation etc. We never know when and what causes app crash a big ISSUE while playing with the app, It could happen anytime e.g. App Launch, […]

By Mohammad Riyaz
Published
Categorised as Uncategorised Tagged , , ,

C#: Unable to cast object of type ‘System.Int64’ to type ‘System.Int32’

I have code as follows: Dictionary<object, object> dict = … Color = (int)dict.GetValue(“color”); When I convert the Color to an int, I get the following exception: System.InvalidCastException: Unable to cast object of type ‘System.Int64’ to type ‘System.Int32’. I am not sure why I can’t just cast from a long to an int. I know for […]

By Kostub Deshmukh
Published
Categorised as Uncategorised Tagged , , ,

why does xamarin suddenly not let me deploy to iOS devices

This just started happening today after I got a message from xcode to agree to new t&c’s. I can’t put anything on the device, on any of my computers. Doesn’t work on my macbook, doesn’t work on my mac mini, doens’t work with existing projects that worked fine until yesterday, doesn’t even work with completely […]

By Infrid
Published
Categorised as Uncategorised Tagged ,

UICollectionView not showing all items

I am develop in Xamarin.iOs using MVVMCross to databind ObservableCollection to a MvxCollectionViewSource and the items are displayed in a UICollectionView. When setting the items to the ObservableCollection not all of them are shown in the UICollectionView. For instance if I set 10 items to the collection view only 7 of them are shown. Any […]

By doorman
Published
Categorised as Uncategorised Tagged , ,

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 , , , ,
1 90 91 92 93 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