how to make a ios 8 touch framework - mopcon 2014

38
How to make a iOS 8 touch framework Superbil @ MOPCON 2014

Upload: kai-yuan-cheng

Post on 14-Jun-2015

646 views

Category:

Technology


1 download

DESCRIPTION

iOS 8 Framework 簡介

TRANSCRIPT

Page 1: How to make a iOS 8 touch framework - MOPCON 2014

How to make a iOS 8 touch framework

Superbil @ MOPCON 2014

Page 2: How to make a iOS 8 touch framework - MOPCON 2014

About me

• iOS

• Git / Emacs / Objective-C / Python

• about.me/superbil

• freenode #g0v.tw #emacs.tw

• Work at g0v, Eatgo

Page 3: How to make a iOS 8 touch framework - MOPCON 2014

Eatgo

Page 4: How to make a iOS 8 touch framework - MOPCON 2014

Framework ?

Page 5: How to make a iOS 8 touch framework - MOPCON 2014

– Apple Document

A framework is a hierarchical directory that encapsulates shared resources, such as a dynamic shared library, nib files, image files, localized strings, header files, and reference documentation in a single package. Multiple applications can use all of these resources simultaneously. The system loads them into memory as needed and shares the one copy of the resource among all applications whenever possible.

Page 6: How to make a iOS 8 touch framework - MOPCON 2014

Framework ?

Page 7: How to make a iOS 8 touch framework - MOPCON 2014

Dynamic Framework

Page 8: How to make a iOS 8 touch framework - MOPCON 2014

Different ?

• Static library a unit of code linked at compile time, which does not change

• Dynamic librarya unit of code and/or assets linked at runtime that may change

Page 9: How to make a iOS 8 touch framework - MOPCON 2014

Framework

• View

• Controls

• Custom appearance

Page 10: How to make a iOS 8 touch framework - MOPCON 2014

iOS Extension • View

• Controls

• Custom appearance

• View Controllers

• Service API

• Resources

Page 11: How to make a iOS 8 touch framework - MOPCON 2014

Framework ?

Page 12: How to make a iOS 8 touch framework - MOPCON 2014
Page 13: How to make a iOS 8 touch framework - MOPCON 2014

Framework

Page 14: How to make a iOS 8 touch framework - MOPCON 2014

iOS 8 Extensions

Page 15: How to make a iOS 8 touch framework - MOPCON 2014

Framework

Page 16: How to make a iOS 8 touch framework - MOPCON 2014

Framework API

Page 17: How to make a iOS 8 touch framework - MOPCON 2014

Key archiving

• key-value

• key nil

• Key

Page 18: How to make a iOS 8 touch framework - MOPCON 2014

Framework Header type

• Public

• Private

• Project

Page 19: How to make a iOS 8 touch framework - MOPCON 2014

Framework Version

Page 20: How to make a iOS 8 touch framework - MOPCON 2014

Framework Version

Page 21: How to make a iOS 8 touch framework - MOPCON 2014

How to

Page 22: How to make a iOS 8 touch framework - MOPCON 2014

iOS 8 Extension

Page 23: How to make a iOS 8 touch framework - MOPCON 2014

Extension Type

• Today

• Share

• Action

• Photo Editing

• Finder Sync (OS X)

• Document Provider(iOS; UI and non-UI variants)

• Custom Keyboard

Page 24: How to make a iOS 8 touch framework - MOPCON 2014

Containing App’s boundle app process App Containing

Page 25: How to make a iOS 8 touch framework - MOPCON 2014

Containing App’s boundle app process App Containing

Extension Boudle Extension process

App Containing

Page 26: How to make a iOS 8 touch framework - MOPCON 2014

Containing App’s boundle app process App Containing

Extension Boudle Extension process

Option share containing

App Containing

Page 27: How to make a iOS 8 touch framework - MOPCON 2014

iOS Extension

Bug

Page 28: How to make a iOS 8 touch framework - MOPCON 2014

– mikimoto

Page 29: How to make a iOS 8 touch framework - MOPCON 2014

– by Jserv

Page 30: How to make a iOS 8 touch framework - MOPCON 2014

Custom Keyboard extension

Page 31: How to make a iOS 8 touch framework - MOPCON 2014

• keyboard type

layout • • •

• • popup •

Page 32: How to make a iOS 8 touch framework - MOPCON 2014

(2)

• •

• •

Page 33: How to make a iOS 8 touch framework - MOPCON 2014

• Autolayout

• iPhone (3.5 4.0 4.7 5.5 iPad

• App

• Apple •

Page 34: How to make a iOS 8 touch framework - MOPCON 2014

• AppGroup

Allow Full Access

Page 35: How to make a iOS 8 touch framework - MOPCON 2014

– iOS 8

Page 36: How to make a iOS 8 touch framework - MOPCON 2014

Container

• Container App Extension

• Extension

Page 37: How to make a iOS 8 touch framework - MOPCON 2014
Page 38: How to make a iOS 8 touch framework - MOPCON 2014

Thanks