How to convert an image from a UIImageView to base64 in xamarin.ios?

I am trying to convert the image inside of the UImageView to base64 so I can insert into the database . I have tried this function to convert it to byte array: public byte[] datareturn() { using (var memoryStream = new MemoryStream()) { thisimageview.Image.AsJPEG().AsStream().CopyTo(memoryStream); return memoryStream.ToArray(); } } and in code I use : string […]

By Taher El-hares
Published
Categorised as Uncategorised Tagged , , , ,

How to stay on the same on viewcontroller and keep the data after minimizing my xamarin.ios app?

I tried to minimize and make my app run in the background , but apparently the app starts from the first ViewController all over again every time I go back to the application . Is there anyway to keep the same data and ViewController that I left from? Thanks in advance Source: Xamarin.ios Questions

By Taher El-hares
Published
Categorised as Uncategorised Tagged , , , ,

How to close a compact UIDatePicker popup when choosing a date?

I have this compact UIDatePicker that I want to close it’s popup once the user changes the date . I tried to look for an answer but I can’t find anyone talking about it. partial void value_changed(UIDatePicker sender) { } Source: Xamarin.ios Questions

By Taher El-hares
Published
Categorised as Uncategorised Tagged , , , ,

How to place an image to the far right end of a button?

I have a button that has a down arrow image inside of it. I am trying to place the down arrow image to the far right end of the button I tried to use ImageEdgeInsets with a Force right-to-left semantic but with no use as I can’t make it dynamic on every screen size . […]

By Taher El-hares
Published
Categorised as Uncategorised Tagged , , , ,

How to call a function in an another view controller in Xamarin.ios?

I have a controller called LeftViewController representing a sidemenu for my main controller ViewController. I want when I click a button in the sidemenu to call a function in the main ViewController and change the title of my button. I tried to define a class refresh_all in ViewController.cs to be responsible of updating titles of […]

By Taher El-hares
Published
Categorised as Uncategorised Tagged , , , ,

Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Could not find a storyboard named ‘visit_info’ in bundle NSBundle

I am getting this error whenever I try to access a ViewController from another storyboard programmatically. It seems that my xamarin.ios app is not recognizing the storyboard which is holding the ViewController. My storyboard name is visit_into.storyboard. I have tried the following code UIStoryboard board = UIStoryboard.FromName("visit_info", null); UIViewController ctrl = (visitController)board.InstantiateViewController("visitController"); ctrl.ModalTransitionStyle = UIModalTransitionStyle.CrossDissolve; […]

By Taher El-hares
Published
Categorised as Uncategorised Tagged , , , ,

How to convert byte array to bitmap in xamarin.ios?

I am trying to convert byte array to a bitmap in my xamarin.ios app but it’s not working. I have tried using Bitmap bitmap = BitmapFactory.decodeByteArray(imageArray, 0, imageArray.Length); but with the error CS0103: The name ‘BitmapFactory’ does not exist in the current context. Source: Xamarin.ios Questions

By Taher El-hares
Published
Categorised as Uncategorised Tagged , , , ,

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