xamarin.ios

Initialization Data after it receiving from another ViewController

徘徊边缘 提交于 2020-01-15 03:58:33
问题 I have two ViewController classes. First - HarachieRolliController. Second - DetailTovarProsmotr I created it in MainStoryboard file in Xamarin iOS (C#) Here screenshot After clicking to button_arrow_product002 : 1) It needs to open DetailTovarProsmotr 2) It need to pass data to DetailTovarProsmotr and display it in some fields , for example (titleproduct001), this is string. First class code: partial class HarachieRolliController : UIViewController { public HarachieRolliController (IntPtr

Error MT2002 in xamarin studio (Monotouch)

三世轮回 提交于 2020-01-14 18:43:36
问题 Good day , I'm using Xamarin Studio 4.0.12 (build 3) for my iOS app , but I unable to build app to device or iOS simulator due to an error : Error MT2002: Failed to resolve "System.Void MonoTouch.Foundation.FieldAttribute::.ctor(System.String,System.String)" reference from "monotouch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065 When I change ' Linker Behaviour ' to ' Link SDK assembly only ' that error occur , but if I change to ' Don't Link ' every thing work great ,

Visual Studio Mac Won't Show iOS Simulators

拜拜、爱过 提交于 2020-01-14 10:45:10
问题 I've got a Xamarin Forms solution with iOS and Android projects. The iOS side was working, I switched over and did a bunch of work on the Android side. Now I need to do some more iOS stuff (push notifications) and I can't get the iOS Simulator to kick in. Xcode is installed, VS says it can see the SDK. I can open the simulator from XC but inside VS no matter what Debug combination of the .iOS project I select all I get is "Generic Simulator". Any ideas? 回答1: See the answer in the comment

Monotouch - Popups over everything

有些话、适合烂在心里 提交于 2020-01-14 04:09:06
问题 On iPhone, in Xcode, I can show a popup view which overlays everything, including the Tab Bar, etc, by using code like this - [[[[UIApplication sharedApplication] delegate] window] addSubview:mySpecialView]; I'm trying to do the same in MonoTouch, and the code I'm using is this - UIApplication.SharedApplication.Delegate.Window.AddSubview(mySpecialView); ...but this crashes. Does anyone have any idea what I'm doing wrong? Thanks for any help. 回答1: You did not say how it crashed - but I assume

How to create crashlytics binding for Xamarin.iOS?

筅森魡賤 提交于 2020-01-14 01:34:47
问题 I've downloaded Crashlytics app that integrates Crashlytics.framework into XCode project, and it works great for XCode. But as far as I know, to build Xamarin.iOS binding I need static library, and I can't find it neither in framework nor in Crashlytics.app contents. There is only "run" executable and header. I don't know how to use it under Xamarin.iOS. Btw, AndrewReed on Xamarin forum managed to build dll somehow, so it's possible. So, how to create crashlytics binding for Xamarin? 回答1:

Can I build Xamarin iOS from the csproj only an not use the solution command line

杀马特。学长 韩版系。学妹 提交于 2020-01-13 19:31:40
问题 I have a few apps i want to build inside my solution and I want to build them separately running : /Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool -v build "--configuration:Release|iPhone" ./42.csproj fails. I do see that all of Xamarin examples use a solution file (.sln) with the mdtool, but I am still wondering of there is a way to reference just on project inside my solution. 回答1: Well After talking with xamarin they claim that using mdtool is not recommended. I was told to use

MvvmCross Dynamic Text Value Conversion

≡放荡痞女 提交于 2020-01-13 17:06:14
问题 As far as I know, MvvmCross localization plugin provides "static" engine. I use the following binding as an example from Conference: local:MvxBind="{'Text'{'Path':'TextSource','Converter':'Language','ConverterParameter':'SQLBitsXApp'}}" I want to be able to change SQLBitsXApp to SQLBitsXApp2 dynamically. The goal is to find the localized text related to days enum. Is there a way to do this dynamically ? 回答1: You're correct - the default MvxLanguageConverter used in that binding is really

Device free space and sandbox space used

别说谁变了你拦得住时间么 提交于 2020-01-13 10:57:33
问题 I'm trying to get the free space on the device and the amount of space my sandbox is using. Any thoughts? Thanks, Rick 回答1: In Objective-C you can get the available file system space with NSFileManager : NSFileManager* filemgr = [NSFileManager defaultManager]; NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *docDirectory = [paths objectAtIndex:0]; NSDictionary* fsAttr = [filemgr attributesOfFileSystemForPath:docDirectory error:NULL];

MonoTouch WIFI SSID

妖精的绣舞 提交于 2020-01-13 09:24:19
问题 is there a possibility to get on an IPhone the connected WIFI SSID with Monotouch? I have found a possibility to check the Wi-Fi States but there is no way to check the SSID. https://github.com/xamarin/monotouch-samples/blob/master/ReachabilitySample/reachability.cs So did anyone know a way? Thanks for all Comments 回答1: You can do this like the sample code that @Jason linked to. But right now there are no bindings for CaptiveNetwork in the current versions of MonoTouch (but it will be

Using CFBundleDocumentTypes: why does my app not show up in the “Share” menu?

為{幸葍}努か 提交于 2020-01-13 09:04:13
问题 I'm trying to register my app for all possible file types. I added the following to my info.plist: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>public.data</string> <key>LSItemContentTypes</key> <array> <string>public.data</string> <string>public.content</string> </array> </dict> </array> If I now open a PDF in Safari and tap Safari's "Share" button, my app is not offered. However if I tap the PDF itself, a button "Open In" appears on top and there my