thanks 4 putting source for a noob to learn a little
-
DocSets-for-iOS and paid 4 it too https://github.com/omz/DocSets-for-iOS/
-
Real Time Congress
thanks 4 putting source for a noob to learn a little
DocSets-for-iOS and paid 4 it too https://github.com/omz/DocSets-for-iOS/
Real Time Congress
@interface Article : MTLModel <MTLJSONSerializing> | |
@property (nonatomic) NSString *title; | |
@property (nonatomic) NSString *body; | |
@property (nonatomic) NSURL *url; | |
@property (nonatmoic) NSDate *dateModified; | |
@implementation Article |
--- | |
language: objective-c | |
before_script: | |
- ./scripts/travis/add-key.sh | |
after_script: | |
- ./scripts/travis/remove-key.sh | |
after_success: | |
- ./scripts/travis/testflight.sh | |
env: | |
global: |
#include <stdio.h> | |
#define SIM 1 | |
#define NAO 0 | |
int main() { | |
//vamos ver se vai ter copa mesmo... | |
int vai_ter_copa; | |
// primeiro disseram que ia ter copa, fiquei feliz =) |
// | |
// AppDelegate.swift | |
// pushtest | |
// | |
// Created by sawapi on 2014/06/08. | |
// Copyright (c) 2014年 sawapi. All rights reserved. | |
// | |
// iOS8用 | |
import UIKit |
import Foundation | |
class Notification { | |
// MARK: - Singleton | |
struct Static { | |
static let instance = Notification() | |
static let queue = dispatch_queue_create("Notification.Static.instance.cache", DISPATCH_QUEUE_SERIAL) | |
} |
// | |
// Call a soap web service | |
// | |
// Add | |
// NSURLConnectionDelegate | |
// NSXMLParserDelegate | |
class MapViewController: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate, NSURLConnectionDelegate, NSXMLParserDelegate{ | |
@IBOutlet weak var mapKit: MKMapView! | |
var wsUrl : String = "http://mobilewebservice.greenmotion.ch/MobileEvpass.asmx" |
// #!Swift-1.1 | |
import Foundation | |
// MARK: - (1) classes | |
// Solution 1: | |
// - Use classes instead of struct | |
// Issue: Violate the concept of moving model to the value layer | |
// http://realm.io/news/andy-matuschak-controlling-complexity/ |
#Sharing Data between iPhone and Apple Watch apps
So we've already taken a look at some of the issues we've faced building our Whiskr Apple Watch app, next we're going to look into how we shared data between the iPhone and Apple Watch app. This was probably one of the hardest aspects to learn and get right, and the current documentation isn't all that great!
To do this we'll have to create an App Group which is essentially a space which both apps can use. It was brought in with the exetension framework in iOS8 so apps can communicate with their Today widgets, or custom keyboards, and amongst other applications.
The first thing we have to do is add the app group capability to both our iPhone and Watch Watch Extension targets.