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.
// note that currentFirstResponder is obtained by this: | |
// | |
// static var currentFirstResponder: UIResponder? | |
// func findFirstResponder(sender: Any) { | |
// currentFirstResponder = self | |
// } | |
// | |
// class func currentFirstResponder() -> UIResponder? { | |
// currentFirstResponder = nil | |
// UIApplication.shared.sendAction(#selector(findFirstResponder), to: nil, from: nil, for: nil) |
ACTION = build | |
AD_HOC_CODE_SIGNING_ALLOWED = NO | |
ALTERNATE_GROUP = staff | |
ALTERNATE_MODE = u+w,go-w,a+rX | |
ALTERNATE_OWNER = grantdavis | |
ALWAYS_SEARCH_USER_PATHS = NO | |
ALWAYS_USE_SEPARATE_HEADERMAPS = YES | |
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer | |
APPLE_INTERNAL_DIR = /AppleInternal | |
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation |
'use strict' | |
import React, { Component } from 'react' | |
import { | |
Text, | |
View | |
} from 'react-native' | |
// Styles are separated from the component | |
// since components tend to have crazy number of lines |
function toCurrency(f) { | |
var fs = f.split('.'); | |
var rs = fs[0].split('').reverse().join(''); | |
var i = 0; | |
var ns = ''; | |
while (i < rs.length) { | |
ns += (i % 3 == 0) ? ',' + rs[i] : rs[i]; | |
i++; | |
} | |
return ns.slice(1).split('').reverse().join('') + '.' + ((fs[1] === undefined) ? '00' : fs[1]); |
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.
# -*- coding: utf-8 -*- | |
$:.unshift("/Library/RubyMotion2.18/lib") | |
require 'motion/project/template/ios' | |
begin | |
require 'bundler' | |
require 'bubble-wrap' | |
require 'motion-stump' | |
require 'sugarcube-repl' | |
Bundler.require |
class AppDelegate | |
attr_accessor :window, :storyboard | |
def application(application, didFinishLaunchingWithOptions: launchOptions) | |
# Switch to a new rootViewController with transition | |
UIView.transitionWithView( | |
@window, | |
duration: 0.5, |
class MyViewController < UITableViewController | |
attr_accessor :datasource | |
# .. UITableViewController delegate methods here .. | |
def prepareForSegue(segue, sender: sender) | |
if (segue.identifier.isEqualToString("segueIdentifier")) | |
index_path = @datasource.indexPathForSelectedRow | |
destination_view_controller = segue.destinationViewController |