This file contains 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
android.view.InflateException: Binary XML file line #19: Error inflating class android.widget.CheckBox | |
at android.view.LayoutInflater.createView(LayoutInflater.java:621) | |
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) | |
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:670) | |
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:695) | |
at android.view.LayoutInflater.inflate(LayoutInflater.java:469) | |
at android.view.LayoutInflater.in |
This file contains 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
import UIKit | |
class ViewController: UIViewController { | |
@IBOutlet weak var textField: UITextField! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
This file contains 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
import Cocoa | |
class ViewController: NSViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view. | |
Firebase.defaultConfig().persistenceEnabled = true |
This file contains 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)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations { | |
[mapView_ clear]; | |
CLLocation *location = (CLLocation*)locations.firstObject; | |
GMSMarker *pinview = [[GMSMarker alloc] init]; | |
pinview.position = CLLocationCoordinate2DMake(location.coordinate.latitude, location.coordinate.longitude); | |
pinview.icon = [GMSMarker markerImageWithColor:[UIColor blueColor]]; | |
pinview.title = @"title"; | |
pinview.snippet = @"sub title"; |
This file contains 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
class ViewController: UIViewController { | |
@IBOutlet weak var testView: UIView! | |
var locationManager = CLLocationManager(); | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
super.viewDidLoad() |
This file contains 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
mport UIKit | |
import GoogleMaps | |
class ViewController: UIViewController { | |
let locationManager = CLLocationManager(); | |
var placesClient: GMSPlacesClient? | |
override func viewDidLoad() { | |
super.viewDidLoad() |
This file contains 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
#import "GmapViewController.h" | |
#import "AFNetworking.h" | |
@import GoogleMaps; | |
@interface GmapViewController () | |
@end | |
@implementation GmapViewController | |
{ |
This file contains 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
#import "ViewController.h" | |
@interface ViewController () <CLLocationManagerDelegate> | |
@end | |
@implementation ViewController{ | |
NSString *currentLongitude; | |
NSString *currentLatitude; | |
NSString *googleMapsURL; | |
CLLocationManager *locationManager_; | |
} |
This file contains 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
#import "ViewController.h" | |
@interface ViewController ()<CLLocationManagerDelegate> | |
@end | |
@implementation ViewController { | |
GMSMapView *mapView_; | |
CLLocationManager *locationManager_; | |
} |
This file contains 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)test { | |
if ([[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"comgooglemaps-x-callback://"]]) { | |
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: [NSString stringWithFormat:@"comgooglemaps-x-callback://?saddr=%@,%@&daddr=%@,%@&", @"18.9750", @"72.8258", @"23.0300",@"72.5800"]]]; | |
} else { | |
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%@,%@&daddr=%@,%@", @"18.9750", @"72.8258", @"23.0300",@"72.5800"]]]; | |
} | |
} |
NewerOlder