This is basically the implementation of #9 with a few tweaks:
This implementation is type safe. The proposal would always return a UIView. This implementation can now return the expected type.
This implementation now checks if a nib with a given name actually exists in a bundle. The proposal would crash with an exception.
This implementation will search for the first view of an expected type if more than one views are found in a xib. The proposal would simply return the first view.
These are just minor tweaks but I think it rounds up the implementation a bit.
This is basically the implementation of #9 with a few tweaks:
These are just minor tweaks but I think it rounds up the implementation a bit.