xamarin.ios

Set Cookie for UIWebView requests

寵の児 提交于 2020-01-21 05:03:04
问题 I want to embed an UIWebView into my MonoTouch application for an area that is not yet implemented natively. In order to authenticate with the website I want to set a cookie containing a key for the current session. I tried creating a NSDictionary with the properties for the Cookie and then create a new NSHttpCookie and add it to the NSHttpCookieStorage.SharedStorage . Sadly the cookie seems to be empty and not used for the request. An example of how to build be cookie with properties and a

An error occurred uploading to the iTunes Store - Please upgrade Java

喜你入骨 提交于 2020-01-20 02:22:11
问题 Yesterday there were an update to Jave (1.6.0_31) in the "Software update", but now when I try to send my updated app, I get this error "An error occurred uploading to the iTunes Store". Console writes this error... Java 1.5, 1.6, or 1.7 is required. Currently, java is the default java version. Please upgrade. Any idea how to fix this? Thanks! 回答1: I met the same "An error occurred uploading to the iTunes Store" issue, and it took me a WHOLE NIGHT! Here comes the way to solve it: cd /System

Warning MT1108 after ios update

烈酒焚心 提交于 2020-01-17 04:07:08
问题 How do I fix: warning MT1108: Could not find developer tools for this 6.1.3 (10B329) device. Please ensure you are using a compatible Xcode version and then connect this device to Xcode to install the development support files. I updated my iPad to new version of iOS and this started happening...I updated my xcode version to the latest stable version ( Xcode 5 , I believe)...I still have `xcode 4 on my computer how do I get this stop happening... 回答1: You'll need Xcode 4.6 - which was the

EXCEPTION: Too many open files (MonoTouch)

核能气质少年 提交于 2020-01-17 04:02:30
问题 I'm writing an MonoTouch app that downloads over 1000 individual PDF files and open them as one giant pdf file. I have no problem viewing the document but if I keep close/open the document few times it will throw EXCEPTION: Too many open files t System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00275] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.IO/FileStream.cs:310 at

Handle local notification tap Xamarin Forms iOS

懵懂的女人 提交于 2020-01-17 01:39:06
问题 I have created an application on Xamarin Forms in which I am scheduling local notifications in PCL through a Plugin named Plugin.Notifications. But I wanted to know whether the user enters into the app through notification or not. I tried to check whether the UIApplication.LaunchOptionsLocalNotificationKey is present in the launch 'options' dictionary or not, but the launch options dictionary is always null. Then I tried to handle it through the ReceivedLocalNotification delegate method, and

How to resize the row height of a UITableView automatically in xamarin ios

a 夏天 提交于 2020-01-16 14:44:29
问题 I am new in xamarin.ios I want to resize the row height according to the content length. How can I do that. Here is my ViewController.Cs public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); nfloat _width = UIScreen.MainScreen.Bounds.Width / 3; DataBinding(); _table = new UITableView(new CGRect(0, 0, View.Frame.Width, View.Frame.Height)); _table.Source = new DetailsTableViewSource(_caseDesign); _table.RowHeight = UITableView.AutomaticDimension; _table

Trying to close a ViewCell.ContextAction on button click in Xamarin

假装没事ソ 提交于 2020-01-16 09:21:45
问题 Currently its set in the listview that if the user swipes left on an item in the list it will then bring up two buttons (favorite and completed, shown above) the user could press. The buttons do what they are supposed to do. The only thing is that I think it is hard for the users to tell their button pressed actually worked so I was hoping I could close the ContextAction after they press the button. Currently, the only way they can get the listview to go back to normal, or close that Context

iOS 13 Setting status bar text color from within UINavigationController

旧时模样 提交于 2020-01-16 09:11:07
问题 So before iOS 13, I was setting the NavigationController.NavigationBar.BarStyle to control the colour of the text int he status bar. But now witht he new UINavigationBarAppearance, is there anyway to control that? I've already tried overriding preferedStatusBarStyle, and ensured my plist contains the setting as well but as far as I can tell this isn't honored if your view controller sits inside a UINavigationController. So now for iOS 13 I'm setting my navigation bar's appearance using the

Xamarin video player unable to play video from simulator document folder

佐手、 提交于 2020-01-16 09:09:13
问题 Hi i implemented the xamarin video player which is described the following link https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/custom-renderer/video-player/ i am downloading videos through code to the documents folder of the application which has a path like this [/Users/vaibhavjain/Library/Developer/CoreSimulator/Devices/{GUID}/data/Containers/Data/Application/{GUID}/Documents/MediaDocuments/Nature1.mp4] now i checked that videos are downloaded correctly to this path

Xamarin.iOS: Cannot run after Visual Studio 2019 Update

混江龙づ霸主 提交于 2020-01-16 09:02:10
问题 i'm facing a strange situation, After Updating Visual Studio 2019, i'm not able to run the application in iOS, this happen when i try to run from a Windows Computer Linked to a Mac. But when i run the app using Visual Studio for Mac instead of windows, the app run without issues. I looked into VS configurations and paths for Xcode and are correct (/Applications/Xcode.app).The path on the Mac exists and are reachables. I tried the following solution, but it doesn't work: Open simulator -- >