Can UINavigationControllerWillShowViewControllerNotification reject my app?

I watch UINavigationControllerWillShowViewControllerNotification

on UINavigationController

, to keep track of when was launched the current view controller, as suggested in this .

There is literally no link to this notice and a google search will link me to this post only.

Does this mean that this is a personal notice and my app might be rejected?

Even worse: does this mean that I shouldn't trust how this notification works as it might break in a future SDK release?

+2


a source to share


1 answer


This notice is actually implicitly mentioned in the documentation:

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated

      

Delegated methods, at least in Cocoa for Mac OS X, are usually accompanied by a notification (well, often anyway).



As this means it is an undocumented feature and as such should be treated with caution. Use a delegate method if possible.

However: If it appears in the header and it works and it is accompanied by a delegate method; it could be Apple's oversight of documentation; and that its use is safe.

I recommend filing a bug and seeing where it gets you; at least if restructuring the application to use the delegate directly would be overly cumbersome (more cumbersome than filing an error).

+4


a source







All Articles