iPhone Developer's Cookbook

まだiPhone Developer's Cookbookの第二章。

今日のソースはListing2-1からListing2-4。
これまでは、ホームボタンを押せば初期状態に戻ってしまったんだけど、終了直前の状態を保存し、再起同時にその状態を再現する手法を学ぶ。

う〜〜〜ん、でも設定保存の本質はNSUserDefaultsにあると思っているのだが、クラスに追加したwhichFlowerの使い道がいまいち意図が見えない。

iPhone Developer’s Cookbook, The: Building Applications with the iPhone SDK (Developer's Library)

iPhone Developer’s Cookbook, The: Building Applications with the iPhone SDK (Developer's Library)