Reuse an existing UIViewController or create a new one?

It's easy to imagine two scenarios where a SimpleIOSViewStack could be expected to behave in opposite ways when required to show the user a UIViewController. One way is the application expects a new instance to be created when a notification is posted while in another situation an existing instance, if one exists, is expected to be recycled.

This is very easily achieved with one of the other properties of a SimpleIOSViewStackNotificationVO.

In order to set it another SimpleIOSViewStackNotificationVO initialiser is used. In the example below the target is not recycled and a new instance is created.

[[NSNotificationCenter defaultCenter]

            postNotificationName:@"show_a_new_view_controller"
                                   object:[

                                                [SimpleIOSViewStackNotificationVO alloc]

                                                      initWithAnimation:YES
                                                          removeCurrent:NO
                                                            recycleTarget:YES
                                                      dictionaryForView:nil

                                               ]

                                   ];