• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebView & Silverlight
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >WebView & Silverlight (From: Folami Nguyen <email@hidden>)
 >Re: WebView & Silverlight (From: Mike Abdullah <email@hidden>)
 >Re: WebView & Silverlight (From: Folami Nguyen <email@hidden>)
 >Re: WebView & Silverlight (From: Mike Abdullah <email@hidden>)
 >Re: WebView & Silverlight (From: Folami Nguyen <email@hidden>)

  • Prev by Date: Re: dev site down time is ridiculous
  • Next by Date: Re: dev site down time is ridiculous
  • Previous by thread: Re: WebView & Silverlight
  • Next by thread: Fwd: WebView & Silverlight
  • Index(es):
    • Date
    • Thread