Today & Share Extension@potatotips
12
@kitasuke trippiece Today & Share Extension の Tips@potatotips
-
Upload
yusuke-kita -
Category
Engineering
-
view
251 -
download
1
description
Today & Share Extension tips
Transcript of Today & Share Extension@potatotips
![Page 1: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/1.jpg)
@kitasuketrippiece
Today & Share Extensionの Tips@potatotips
![Page 2: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/2.jpg)
Today&Share Extensionを実装した時に、はまったエラーやマニアックな話
Xcode6.0.1
![Page 3: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/3.jpg)
デモ
![Page 4: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/4.jpg)
Today Extension
![Page 5: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/5.jpg)
iPad mini retinaでアプリが起動しない…↓
iOS8を最新バージョンにすると直った\ (^o^)/
‘libgmalloc.dylib’ image not found
![Page 6: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/6.jpg)
このエラー文を翻訳すると↓いつから attachしていると錯覚していた?
iOS Simulator→Reset Content and Settings
Xcode Waiting to attach…
![Page 7: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/7.jpg)
Share Extension
![Page 8: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/8.jpg)
- (UIView *)loadPreviewView;で取得可能NSExtensionItemから kUTTypeURLを排除したかったけど readonlyなので無理\ (^o^)/
Previewを非表示にする
デフォルト CGRectZero or hidden=YESの結果
![Page 9: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/9.jpg)
Storyboard内で独自 Viewを作成しても、デフォルトの Share Extension用ビューが表示される↓
loadViewをオーバーライド
カスタムビューを使用する
![Page 10: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/10.jpg)
まだバグで消耗してるの?Extensionはシンプルに!
まとめ
![Page 11: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/11.jpg)
複数アプリケーションの実行を全部止めたい↓誰かご存知の方教えてください\ (^o^)/
アプリケーションの停止
![Page 12: Today & Share Extension@potatotips](https://reader033.fdocuments.net/reader033/viewer/2022061123/54705bbaaf7959056d8b4637/html5/thumbnails/12.jpg)
We’re hiring iOS & Android Engineers!!