OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

showing custom menu on selection in UIWebView in iphone

  • Thread starter Thread starter sagarkothari
  • Start date Start date
S

sagarkothari

Guest
I want to show 2 options like "hi" & "bye" when user completes selection on UIWebView.

I have added observer to my view controller as follows. But I don't know further implementation.

Code:
[[UIMenuController sharedMenuController] addObserver:self 
                                          forKeyPath:UIMenuControllerWillShowMenuNotification
                                             options:nil
                                             context:nil
 ];
<p>I want to show 2 options like "hi" & "bye" when user completes selection on UIWebView.</p>

<p>I have added observer to my view controller as follows. But I don't know further implementation.</p>

<pre><code>[[UIMenuController sharedMenuController] addObserver:self
forKeyPath:UIMenuControllerWillShowMenuNotification
options:nil
context:nil
];
</code></pre>
Continue reading...
 

Online statistics

Members online
0
Guests online
3
Total visitors
3
Top