LoginSignup
0
0

More than 5 years have passed since last update.

iOS10 イメージ付きNotificationで詰まったこと(ローカル通知)

Posted at

やろうとしたこと

1.Viewをキャプチャして保存
2.指定曜日のn時に通知を一斉登録
 ex.(月),(火),(水) 19:00に通知
3.↑に画像付きの通知にする

ダメだったこと

1.ローカルに保存した画像ファイルを指定
2.保存した1つの画像ファイルを複数の通知で登録

どうしたか?

1.->(ダメ1).pngや.jpgとサポートされているファイル形式で命名
2.->(ダメ2)同じデータファイルを別名ファイルで複数用意
ex. image.png を image-1.png, image-2.png, image-3.png ...と保存

2.に関しては容量を無駄に喰ってスマートではないので、通知直前で画像読み込みを行った方がスマート。

いや、書いたこと違うぜよ。。ちゃんとできるで。
という方、ぜひご教授ください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0