DOCUMENT.md How to save data in iOS この投稿では、iOSのファイルシステムについて理解し、データを永続化(iCloud含む)する方法を紹介する。尚、サンプルコードは動かない可能性もあるので参考程度にして下さい。 iOS File System アプリがファイルシステムとやり取り出来る場所は、ほぼアプリのサンドボックス内のディレクトリに制限されている。新しいアプリがインストールされる際、インストーラーはサンドボックス内に複数のコンテナを作成し、図1に示す構成をとる。各コンテナには役割があり、Bundle Containerはアプリのバンドルを保持し、Data Containerはアプリとユーザ両方のデータを保持する。Data Containerは用途毎に、さらに複数のディレクトリに分けられる。アプリは、例えばiCloud Containerのように、実行時
こんにちは、たなたつです 汎用性高めのExtension集です。Protocolやstructなども一部含まれています。 使うと手放せなくなるSwift Extension集 (Swift 4版)のSwift 5版です。 (2年ぶりの更新) Swift 5.1の新機能や記法の最適化によって段々と良くなっています。 今回紹介したExtensionは全て下記のリポジトリに入っています。他にも便利な機能がたくさん入っているので、利用したい方はコピペやSwift PM/Carthageで導入してみてください。 https://github.com/tattn/SwiftExtensions ※ Swift 5.1, Xcode 11.2.1 で動作確認をしています。 ※ コード片ごとに紹介していますが、別のコード片のExtensionに依存している場合がありますので、ご注意ください。 ※ これらの
SwiftUI by Example is the world's largest collection of SwiftUI examples, tips, and techniques giving you almost 600 pages of hands-on code to help you build apps, solve problems, and understand how SwiftUI really works. Also available as a download edition Introduction A brief explanation of the basics of SwiftUI Don’t panic! What is SwiftUI? SwiftUI vs Interface Builder and storyboards Frequentl
I want to detect if my AVPlayer is buffering for the current location, so that I can show a loader or something. But I can't seem to find anything in the documentation for AVPlayer.
Dependency injection can be a useful tool for creating modular, loosely coupled, and easily testable code. At its core, it’s a simple concept. Objects should have their dependencies passed to them instead of creating their own internally. Unfortunately, simple practices like constructor or property injection can become more difficult and error prone as applications grow larger. Anyone who has done
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く