Re: WebView & Silverlight
Re: WebView & Silverlight
- Subject: Re: WebView & Silverlight
- From: Alex Zavatone <email@hidden>
- Date: Wed, 24 Jul 2013 13:42:44 -0400
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.
On Jul 24, 2013, at 5:04 AM, Folami Nguyen wrote:
> Dear Mr.Abdullah,
>
>
> 2013/7/24 Mike Abdullah
>
>>
>> It's possible that as a plug-in, Silverlight is sidestepping all this. If
>> so, you're a bit stuck.
>>
>> I also think that. Poor me.
> Thank you for your reply.
> @All other members:
> Are there any solution for this problem?
> Best regards.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden