xamarin.ios

How can Objective-C or Swift app call functions in my Xamarin.ios class library?

为君一笑 提交于 2020-01-30 13:16:09
问题 Another team member is writing an Xcode Swift app that needs to call functions in the Xamarin.IOS class library that I'm writing in Visual Studio on Windows. How does the Swift app interface/bind with my Xamarin.IOS lib? Does Xamarin.ios class lib project generate .a and .h files? Is it best to use Visual Studio on Mac to build the class lib? 来源: https://stackoverflow.com/questions/59864424/how-can-objective-c-or-swift-app-call-functions-in-my-xamarin-ios-class-library

Xamarin Forms date and time picker

牧云@^-^@ 提交于 2020-01-30 09:14:08
问题 I am using Xamarin Forms to make Cross-platform application and I need to create simple view that user can choose date and time, similar to this: View that I want to create that i found here: Picker in Xamarin iOS. Solution for Android is ready, but I need to create solution for iOS in the same application I can not use standard date picker and another standard time picker separately from Xamarin Forms. I need to create custom solution (one view - simple choose both date and time). I have

Crop and rotate a captured picture Xamarin.Android & Xamarin.iOS

核能气质少年 提交于 2020-01-30 08:26:36
问题 Anyone knows a library that can take a picture with an Android or iOS smartphone and then offer a view to crop or rotate this image (so, without the native preview) I work with PCL / Xamarin.Android / Xamarin.iOS (Not Xamarin.Form) 回答1: You can use FFImageLoading to crop and rotate your images. Try to add pinch/swipe gesture recognizer to your images, when this event fires use the rotate transformation to rotate the image: public RotateTransformation(double degrees, bool ccw, bool resize) { .

Crop and rotate a captured picture Xamarin.Android & Xamarin.iOS

旧巷老猫 提交于 2020-01-30 08:26:31
问题 Anyone knows a library that can take a picture with an Android or iOS smartphone and then offer a view to crop or rotate this image (so, without the native preview) I work with PCL / Xamarin.Android / Xamarin.iOS (Not Xamarin.Form) 回答1: You can use FFImageLoading to crop and rotate your images. Try to add pinch/swipe gesture recognizer to your images, when this event fires use the rotate transformation to rotate the image: public RotateTransformation(double degrees, bool ccw, bool resize) { .

Exception access Azure AD B2C using ADAL library for user management

北城以北 提交于 2020-01-26 03:31:07
问题 Since Microsoft Graph API doesn't have the feature to manage B2C AD Users, from one of the docs we have been asked to use ADAL which required to create a special application in the Azure AD B2C tenant. Created an application key to provide API access from the xamarin.ios app. AuthenticationContext authContext = new AuthenticationContext(authority); credential = new ClientCredential(clientId, GraphClientSecret); authResult = await authContext.AcquireTokenAsync(graphResourceUri, credential); At

Byte array shows value but the ImgView.Image shows null in ios

强颜欢笑 提交于 2020-01-25 20:36:48
问题 I am trying to display an image into UIImageView through this method NSData.FromArray() but it gives an null reference exception my code is the following: Byte _imgData = GetRawData(_imgPath); // this method get the byte array of size ([131072]) NSData _data = NSData.FromArray(_imgData); ImgView.Image = UIImage.LoadFromData(_data) //in this _data shows the byte array value but the ImgView.Image shows null Byte array get the RLE Compress data. ImgView.Image = UIImage.LoadFromData(_data) _data

Byte array shows value but the ImgView.Image shows null in ios

蓝咒 提交于 2020-01-25 20:35:13
问题 I am trying to display an image into UIImageView through this method NSData.FromArray() but it gives an null reference exception my code is the following: Byte _imgData = GetRawData(_imgPath); // this method get the byte array of size ([131072]) NSData _data = NSData.FromArray(_imgData); ImgView.Image = UIImage.LoadFromData(_data) //in this _data shows the byte array value but the ImgView.Image shows null Byte array get the RLE Compress data. ImgView.Image = UIImage.LoadFromData(_data) _data

Xamarin.Forms GestureRecognizers not working on Command

老子叫甜甜 提交于 2020-01-25 09:34:09
问题 Code in the xaml page: <StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <CollectionView ItemsSource="{Binding MeniElementi}"> <CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical" Span="2" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate> <Frame Padding="10" WidthRequest="140" HeightRequest="140"> <Frame BackgroundColor="AliceBlue" WidthRequest="120" HeightRequest="120" HasShadow="True" CornerRadius="10" Padding="10"

Xamarin.Forms TapGestureRecognizer with Command navigate to page based on Image clicked

末鹿安然 提交于 2020-01-25 09:26:11
问题 Code in the xaml page: <StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <CollectionView ItemsSource="{Binding MeniElementi}"> <CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical" Span="2" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate> <Frame Padding="10" WidthRequest="140" HeightRequest="140"> <Frame BackgroundColor="AliceBlue" WidthRequest="120" HeightRequest="120" HasShadow="True" CornerRadius="10" Padding="10"

Xamarin Create swipe page in page

喜欢而已 提交于 2020-01-25 08:34:10
问题 I have a question... I want to create a page that looks like this: And then when you swipe one of the four blocks, you get this: Is this somehow possible in Xamarin Forms? I have no idea where to google for or how to start! Any ideas? 回答1: you can do it with a Grid and the visual state manager: <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="Auto"/> <