The restoration path


#1

For Page 462, the author mentions that the restoration identifier path array will be 2 if you are viewing an existing BNRItem and 3 if you are creating a new BNRItem.

Could someone explain to me how they came up with that count?


#2

By “that count”, do you mean both of them, or just the more complex case of creating a new BNRItem?


#3

I think I got it now. The restoration path is just the number of views with restoration ids present at the time of the “freeze”

We know that there will be 3 restoration views if the user left off at creating a BNRItem (the BNRItemsViewController is skipped since it presented a UINavigationController modally).

But then again, how do they known that if there are 2 views in the restorationpath, how do they know it’s

  1. UINavigationController/BNRDetailViewController (viewing a BNRItem)
    or
  2. UINavigationController/BNRItemsViewController (just viewing the uitable)

#4

[quote]But then again, how do they known that if there are 2 views in the restorationpath, how do they know it’s

  1. UINavigationController/BNRDetailViewController (viewing a BNRItem)
    or
  2. UINavigationController/BNRItemsViewController (just viewing the uitable)[/quote]
    Because the restoration path count being checked is in…wait for it…BNRDealViewController.m