I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| { | |
| "Simulator Target Bundle": "com.bundle.id", | |
| "aps": { | |
| "alert": "Text to show in notification", | |
| "sound": "default", | |
| "badge": 1 | |
| }, | |
| "custom_param_1": "value", | |
| "custom_param_2": "value" | |
| } |
| /** | |
| * File: RandomImage.java | |
| * | |
| * Description: | |
| * Create a random color image. | |
| * | |
| * @author Yusuf Shakeel | |
| * URL: https://www.dyclassroom.com/image-processing-project/how-to-create-a-random-pixel-image-in-java | |
| * Date: 01-04-2014 tue | |
| */ |
| // Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
| // Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // Licensed under MIT (http://opensource.org/licenses/MIT) | |
| // | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> | |
| // Compile-time selector checks. |
| # Set project "Version" string (e.g. 1.1) | |
| # After each build "Build" string will be composed from "Version" and incremented build version (1.1.32, 1.1.33 and so on). | |
| versionNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${INFOPLIST_FILE}") | |
| buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFOPLIST_FILE}") | |
| buildNumber=$(echo $buildNumber | awk -F. '{print $NF}') | |
| buildNumber=$(($buildNumber + 1)) | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $versionNumber.$buildNumber" "${INFOPLIST_FILE}" |
| /** | |
| Open location in one of external maps app: Google Maps, Yandex.Navigator, Yandex.Maps, Maps (iOS) | |
| @param location Coordinates in following format: "xx.yyy,xx.yyy" (longitude,latitude) | |
| */ | |
| + (void)openLocation:(NSString *)location { | |
| if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) { | |
| NSArray *coordinatesComponents = [location componentsSeparatedByString:@","]; | |
| CLLocationCoordinate2D coordinates = CLLocationCoordinate2DMake([coordinatesComponents[0] doubleValue], [coordinatesComponents[1] doubleValue]); | |
| NSString *googleMapsUrlString = [NSString stringWithFormat:@"comgooglemaps://?q=%@", location]; |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"yandexmaps://test"]]) { | |
| CLLocationCoordinate2D location = <some location>; | |
| NSString *yaMapsString = [NSString stringWithFormat:@"yandexmaps://maps.yandex.ru/?pt=%f,%f&ll=%f,%f", location.longitude, location.latitude, location.longitude, location.latitude]; | |
| NSURL *yamapsUrl = [NSURL URLWithString:yaMapsString]; | |
| [[UIApplication sharedApplication] openURL:yamapsUrl]; | |
| } |