I just had a discussion with a developer who has never done mobile development, which became a little heated. (Unfortunately, it was my client, so I think our relationship is now breaking down because of it...).
Anyway, we were discussing the SDK I am building for him, and we have come to a feature that demands the presentation of a UIWebView, to handle a crappy html form.
For the sake of this thread and without going into any detail about why, please assume that presenting a web view is an essential requirement, and jumping out of the App and going to Safari is not an option.
The client asked that we show a full screen, modal web view from within the SDK. I suggested that we implement a protocol which would delegate the presentation of the web view back to the implementing developer, who would then present it from where he/she likes.
Bear in mind that any events that occur in the web view need to be monitored and handled by the SDK, i.e. certain requests need to be halted / inspected, before they start etc (but all of this would be implemented by the SDK anyway).
What are you thoughts on presenting UI from an SDK over having the control yourself, in terms of good SDK design and implementation complexity ?
Specs:
iOS 7+.
All devices.
Anyway, we were discussing the SDK I am building for him, and we have come to a feature that demands the presentation of a UIWebView, to handle a crappy html form.
For the sake of this thread and without going into any detail about why, please assume that presenting a web view is an essential requirement, and jumping out of the App and going to Safari is not an option.
The client asked that we show a full screen, modal web view from within the SDK. I suggested that we implement a protocol which would delegate the presentation of the web view back to the implementing developer, who would then present it from where he/she likes.
Bear in mind that any events that occur in the web view need to be monitored and handled by the SDK, i.e. certain requests need to be halted / inspected, before they start etc (but all of this would be implemented by the SDK anyway).
What are you thoughts on presenting UI from an SDK over having the control yourself, in terms of good SDK design and implementation complexity ?
Specs:
iOS 7+.
All devices.