目次

目次

2022/8/4更新

 

CocoaPodsを削除(ビルドエラーになるため)

https://qiita.com/Lulu34/items/cd1f9c3d7faa960dda50

 

【超基礎】Swiftを触ったことの無い方が、「調べながらやれば形にできる」ようにする記事 - Qiita

 

Provisioning profile "iOS Team Provisioning Profile: expiredが表示されてエラーになる時は、

Bundle Identifierを変更して(2を追加)してtry againするとエラーが解消した。

 

[Swift]pod 'Firebase/Firestore'インストール後のビルドが遅い場合の対処法 - Qiita

flutter firebase ios build が遅いので高速化する

 

最新記事

 

iOS14対応 

 

開発環境構築 

Hello World

実機(iPhone Xs)でHello World

Button

GitHubに追加

ショートカットキー(キーバインド)を変更

LabelとButtonの色とサイズ変更

ボタンクリックで、画面の背景色を変更

print文を追加 

ブレークポイントを追加

TabelViewを追加

アラートを表示 

Webページを表示する

Face ID認証

縦固定にする

位置情報を取得

→続き 経度と緯度からFinds.jpで地名を表示

→続き バックグラウンドで位置情報を取得してファイルに書き込み

地図を表示

画面遷移

コードで画面遷移

画面遷移(別のstoryboardへ遷移)

エミュレータでダークモード

Battery残量と状態を表示

スクリーンの輝度を表示

現在時刻を表示

Table ViewwのCellの個数を設定、中身を表示

⭐️QiitaのAPIでタイトルを表示

cellのdetailTextLabelを表示

次ページのタイトルを表示

TaleViewで一番下に行った時に次ページを読み込む

⭐️TableViewCellにImageを追加。非同期で画像取得

Cellの高さを設定

Text Fieldで数値と小数点のみのキーボードを表示

TodoList(追加と表示)

現在日時を表示

ログをファイルに保存する

Vertical Stack View

SQLiteでCREATE TABLEとCRUD

iOSでFirebaseを使用して、データベースに対してCRUDを実行(CocoaPodsが必要)

⭐️Dropbox API 認証して、画像をダウンロードして表示(CocoaPodsが必要)

→続き Dropboxのファイル名のリストを取得

→続き client.files.listFolderで2,000件取得

どのswiftバージョンで書かれているのか確認する

vscodeでGit Graph

中央寄せ Align

⭐️Qiitaのタグを表示

iPhoneの画像を読み込み、表示

web上の画像を表示

Carthageを導入

LAN内共有フォルダの接続先を検索

Codable

Swift 文法

UserDefaults 

⭐️teratailのAPIでswiftの質問を表示

⭐️NoteのAPIでカテゴリがテクノロジーのタイトルを表示

⭐️Box iOS SDKをインストールして、API呼び出しの実行。jpgファイルのダウンロード 

 iOS14対応

Microsoft Graph APIのサンプルでSign in

GitHub OAuth認証

LINE SDK for iOS Swift のサンプルでログイン画面表示

⭐️Stack OverflowのAPIでswiftの質問を表示

⭐️はてなブックマーク お気に入りフィードのタイトルを表示 

⭐️The feedly Cloud APIではてなブックマークお気に入りのタイトルを表示

⭐️Google Newsのタイトルを表示

⭐️Twitter APIで、ツイートを表示

 

ソース

GitHub - hiroyuki12/HelloWorldSwift

 

スクリーンショット command + shift + ctrl + 4して、スペース、画面クリックすると、クリップボードにコピーされます。

スクリーンショットを直接クリップボードに保存する方法 - Qiita

 

タイトルを右クリックして、Copy Linkして、目次に貼り付け。

 

新型コロナ感染経路確認へ行動履歴把握 高校生・加藤さんがアプリ製作 / 函館新聞電子版

 

Swift4 Codableがすごすぎた件 - Qiita

 

SwiftでQiitaのAPIを表示させる。 - Qiita

 

GitHub - hirothings/qiita-pocket: あとで読むQiita APP (Swift4.0 / Xcode9)

 

【Swift/Objective-C】【短期】Qiitaの今読んでおくべき記事100選【毎週自動更新】 - Qiita

 

https://developer.apple.com/documentation/uikit/views_and_controls

 

日本語ドキュメント - Apple Developer

 

Hatena-Textbook/swift-development-apps.md at master · hatena/Hatena-Textbook · GitHub

 

Box OAuth

Hatena OAuth

Qiita OAuth

 

Google Photos APIをPythonで操作する|プログラミングが出来るようになるノート|note

 

mstdn.guruのトゥートを表示

2023/3/4 確認

 

 f:id:fedora9:20201127232922p:plain

QiitaのAPIでタイトルを表示 を元に作成

 

Getting started with the API - Mastodon documentation

 

Fetching public timelines

Playing with public data - Mastodon documentation

$ curl https://mstdn.guru/api/v1/timelines/public | jq | more

f:id:fedora9:20201127230343p:plain

Localのトゥートを取得する時はtrueにする。デフォルトはfalse

https://mstdn.guru/api/v1/timelines/public?local=true

timelines - Mastodon documentation

 

https://mstdn.guru/api/v1/accounts/1/statuses 

$ curl https://mstdn.guru/api/v1/accounts/1/statuses | jq | more

Mastodon ユーザーのユーザID番号の簡単な確認方法 - Qiita

 

https://mstdn.jp/api/v1/timelines/public?local=true

 

https://qiitadon.com/api/v1/timelines/public?local=true

はじめての Qiitadon - Qiita

 

https://pawoo.net/api/v1/timelines/public?local=true

 

tag/cats?limit=2

https://docs.joinmastodon.org/client/public/

$ curl https://pawoo.net/api/v1/timelines/tag/ai | jq | more

 

https://docs.joinmastodon.org/client/token/

https://docs.joinmastodon.org/methods/accounts/#following

Get account’s following

$ curl -X POST \    

        -F 'client_name=Test Application' \

        -F 'redirect_uris=urn:ietf:wg:oauth:2.0:oob' \

        -F 'scopes=read write push' \

        -F 'website=https://myapp.example' \

        https://mstdn.guru/api/v1/apps

 

$ curl -X POST \                                                

        -F 'client_id=your_client_id_here' \

        -F 'client_secret=your_client_secret_here' \

        -F 'redirect_uri=urn:ietf:wg:oauth:2.0:oob' \

        -F 'grant_type=client_credentials' \

        https://mstdn.guru/oauth/token

 

$ curl \

        -H 'Authorization: Bearer our_access_token_here' \

        https://mstdn.guru/api/v1/apps/verify_credentials

 

アカウントIDが2のユーザー(mazzo)のfollwingリストを取得

https://mstdn.guru/web/accounts/2/following

$ curl \

        -H 'Authorization: Bearer our_access_token_here' \

        https://mstdn.guru/api/v1/accounts/2/following | jq | more

 

 

認証 クライアントアプリへのアクセスの取得

https://docs.joinmastodon.org/client/token/

 

アカウントでログインする

https://docs.joinmastodon.org/client/authorized/

 

ライブラリ

https://github.com/MastodonKit/MastodonKit

 

metatext

https://github.com/metabolist/metatext

 

iOS(Swift)から3ステップでMastodonに投稿を行う - Qiita

 

mastodonのAPIをcurlで試してみた - Qiita

 

Mastodon API の叩き方 · GitHub

 

わずか数行のコードで利用できちゃう!Mastodon APIを活用してみた。

https://liginc.co.jp/352720

 

Mastodon API を使ってみる

https://www.antun.net/tips/api/mastodon.html

 

環境の設定 - Mastodon documentation

 

Mastodon の toot を Python で取得する

https://sucher.net/mastodon-toot-python/

 

ホームタイムラインを見る

https://docs.joinmastodon.org/methods/timelines/#home

RxSwift

初心者によるRxSwiftのデモ - Qiita

ViewControllerにおいて、ボタンと反応するメソッドが一対一では無くなり、見やすくなっています。

ViewModelにおいて、delegate?.updateCountのようにデータ更新の通知を行わなくても良くなっています。イベントが発生した場合、自動で通知が流れていきます。

比較的記述量が多い問題があります。極めて規模の小さいプロジェクトには向かないかもしれません。