語法參考如下:
[Xamarin - iOS] 判斷 iOS 版本號的語法
- 174
- 0
語法參考如下:
一點錄影就閃退...
MediaTypes 指定 UTType.Movie,還是會閃退,那需要修改Info.plist 。
在 iOS9 之後,webview 預設只能載入 https 的網址,如果要可以載入 http 網址,要修改 Info.plist
為避免不小心按下 back 按鈕,立即離開APP,所以需要跳出「確認視窗」,確認使用者是不是真的要離開APP。
要達到此功能,只要複寫OnBackPressed涵式即可。
自簽SSL憑證,會造成 WebView 產生 SSL Errors ,以致無法正常顯示
判斷是否連上網路,如果沒有網路,則跳出提示訊息後,自動關閉app。
APP可以「分享」文字或圖片給其他的APP,如下圖,
用 Xarmarin.tesseract 開發 OCR 程式時,tessdata 已放到方案總管了,但是執行還是出錯,輸出視窗出現如下面的錯誤訊息
Data file not found at /storage/emulated/0/Android/data/APPNAME/files/tessdata/eng.traineddata
java.lang.IllegalArgumentException: Data file not found at /storage/emulated/0/Android/data/APPNAME/files/tessdata/eng.traineddata
編譯部屬APP時,在輸出視窗出現如下列錯誤訊息,APP無法正常部屬執行
05-27 08:26:41.921 F/monodroid-assembly(29783): Could not load assembly 'fushengApp' during startup registration.
05-27 08:26:41.921 F/monodroid-assembly(29783): This might be due to an invalid debug instalation.
05-27 08:26:41.921 F/monodroid-assembly(29783): A common cause is to 'adb install' the app directly instead of doing from the IDE.