This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure` | |
Solution: Temporary disable all | |
``` | |
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSAllowsArbitraryLoads</key><true/> | |
</dict> | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Foundation; | |
using UIKit; | |
using System.Collections.Specialized; | |
using System.Windows.Input; | |
using MvvmCross.iOS.Views; | |
namespace AutoLinker | |
{ | |
// This class is never actually executed, but when Xamarin linking is enabled it does ensure types and properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Specialized; | |
using System.Diagnostics; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
namespace Praeclarum.UI | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Cocoa Pod Binding | |
sharpie bind -sdk iphoneos9.2 -o tmp Pods/Headers/Public/NearbyMessages/GNSMessages.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---------------------------------------------------------------------------- | |
// Copyright (c) Microsoft Corporation. All rights reserved. | |
// ---------------------------------------------------------------------------- | |
using System; | |
using Microsoft.Azure.Mobile.Server.Tables.Config; | |
namespace Microsoft.Azure.Mobile.Server.Config | |
{ | |
public static class QuickstartMobileAppConfigurationExtensions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"destination_addresses": [ | |
"76 Lê Lai, Phạm Ngũ Lão, Quận 1, Hồ Chí Minh, Vietnam" | |
], | |
"origin_addresses": [ | |
"557A/C6 Nguyễn Tri Phương Tổ 12 KP 3, phường 14, Quận 10, Hồ Chí Minh, Vietnam" | |
], | |
"rows": [ | |
{ | |
"elements": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<metadata> | |
<!-- | |
This sample removes the class: android.support.v4.content.AsyncTaskLoader.LoadTask: | |
<remove-node path="/api/package[@name='android.support.v4.content']/class[@name='AsyncTaskLoader.LoadTask']" /> | |
This sample removes the method: android.support.v4.content.CursorLoader.loadInBackground: | |
<remove-node path="/api/package[@name='android.support.v4.content']/class[@name='CursorLoader']/method[@name='loadInBackground']" /> | |
--> | |
<!-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -exportcert -keystore debug.keystore -alias androiddebugkey | openssl sha1 -binary | openssl base64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add line | |
CALayer topBorder = CALayer.Create(); | |
topBorder.Frame = new CoreGraphics.CGRect(0, 0, View.Bounds.Width, 1); | |
topBorder.BackgroundColor = UIColor.FromRGB(128, 128, 128).CGColor; | |
TabBar.Layer.AddSublayer(topBorder); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void SetStatusBarColor() | |
{ | |
if (Build.VERSION.SdkInt < BuildVersionCodes.Kitkat) | |
{ | |
return; | |
} | |
if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop) | |
{ | |
Window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds); | |
Window.ClearFlags(WindowManagerFlags.TranslucentStatus); |