2013/7/25 Alex Zavatone <z...@mac.com>

> I'm not sure if your application is for Mac OS, or iOS, but from the iOS
> side I've never seen any doc mentioning if a UIWebView would support
> SilverLight at all.
>
> With a good part of the dev site still recovering from last Thursday's
> event, here is one doc that I could find that shows some of the file
> formats that a UIWebView supports, however, it was last updated in 2009.
>
>
> http://developer.apple.com/library/ios/#qa/qa1630/_index.html#//apple_ref/doc/uid/DTS40008749
>
> In your UIWebView, can't you check to see the nature of what was clicked
> on in your click handling code?  You stated that you don't know which
> delegate it's going to.  Didn't you set the delegate for the UIWebView in
> your ViewController?
>
> If you're looking for the navigation type of what was clicked or tapped,
> it can be found within this delegate method below:
>
> #pragma mark - UIWebViewDelegate
> - (BOOL)webView:(UIWebView*)webView
> shouldStartLoadWithRequest:(NSURLRequest*)request
> navigationType:(UIWebViewNavigationType)navigationType {
>
> What is the navigationType when you click on a button in your silverlight
> app?
>
> For example, if a URL was clicked on in the UIWebView, you can start to
> check get some info about was clicked on like so:
>
>         if (navigationType == UIWebViewNavigationTypeLinkClicked) {
>                 NSURL *URL = [request URL];
>         //      NSLog(@"%@ ",  URL);
>         //      NSLog(@"%@ ",  URL.baseURL);
>         //      NSLog(@"%@ ",  URL.absoluteURL);
>         //      NSLog(@"%@ ",  URL.fragment);
>         //      NSLog(@"%@ ",  URL.lastPathComponent);
>                 NSLog(@"%@ ",  URL.pathExtension);
>
> Hope this points you in a good direction.
>
> Dear Mr.Zavatone,
Thanks you for your reply.
My problem is in MAC OS X but iOS.
Best regard.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to