realmとapp extensionのガイダンス/realm meetup vol.6
Post on 16-Apr-2017
3.192 Views
Preview:
TRANSCRIPT
RealmApp ExtensionYuta Hoshino
2015-8-25 Realm Meetup #6
QReation? http://dunnnk.comiOSApp ExtensionAppGroupembedded framework, podfilelink withWatch
iOSApple Watch(watchOS1)RealmApp Extension(TodayAction)WatchWatchToday Extension
Realm
App ExtensionRealmiOS9/watchOS2
iPhone3GS(ge-calc) 64DLiPadTop100200DLCoreDataRealmQReationApple WatchAkerunUI
Yuta Hoshino @hsylife
Realm
AppStoreURLQRiOS/WatchGlanceActionHandoffRealm SwiftiOSWatchRealm(watchOS1)URLQReation ()
https://appsto.re/jp/mtMw7.i
QRiOSWatchRealm
Realm?
iCloudAndroidCoreDataRealm
UI
watchIndex 0QRIndex 1
RealmiOS
AppGroup
Embedded Framework
UI
WatchKit Extension
CocoaPods
App Group.realmiOS/Watch(AppExtension)
Realm
App GroupMember CenterApp GroupCertificates, Identifiers & Profiles > iOS Apps > Identifiers > App Groupsidentifiergroup.com.ge-nie.QReate.DocumentsiOS/ExtensionONProject > Capabilities > AppGroupsON identifier
WatchKitiPhone App(_tid_)
http://qiita.com/_tid_/items/dfff60ec8e93fefe1af4
Embedded Framework1RealmObjectEmbedded FrameworkFrameworkXcode6
Embedded Framework
Embedded FrameworkTargetsCocoaTouchFrameworkProductNameFrameworkAppExtensionAPIAllow app extension API onlyExtensionEmbedded binaryExtension+publicimportiOS/Watch
4publicprivate
[iOS 8] App Extension #2 Embedded Framework Framework ( )
http://dev.classmethod.jp/references/ios-8-embedded-framework/
RealmiOS
AppGroup
Embedded Framework
UI
WatchKit Extension
CocoaPods
2
Cocoa Pods()PodfileOK
Podfileplatform :ios,'8.0' use_frameworks!
link_with 'QReate_Framework'
pod 'RealmSwift'
end
TargetsPodfileWatch ExtentionEmbedded FrameworkLink with
Embedded FrameworkLink with
App ExtensionCocoaPods2(tmnb )http://qiita.com/tmnb/items/15377f03498ca0b53592
UIRealmcontextForSegueWithIdentifier()QRcurrentRowRealmQR
currentRow=1
index 0index 1
index 101index 00
index 11
Realm
RealmtablerowRealmQR
RealmcurrentRowNotificationTokenRealm().addNotificationBlock
index 1index 0index 1index 0index 1
index 0
t
changed
changed
: iOSwatch
index 1index 0index 1index 0index 1
index 0
tindex 1
???ArraywatchrowQRiOS???
: popReload
index 0
index 1index 0index 1index 0index 1
index 0
tindex 1Realm
watch
2QRInterfaceController.swift
iOS.realm
thank you,watchOS2 ythshn@gmail.com Facebook
Yuta Hoshino @hsylife
watchOS2fb
AEDRegisters()7AED4AED3.7% AEDAED10AED603.5
AEDAED(AED)()+100AEDAED ythshn@gmail.com
AEDAED10
top related