Implement this in your UIWebViewDelegate class
- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType {
//CAPTURE USER LINK-CLICK.
NSURL *url = [request URL];
yourTextBox.text = [url absoluteString];
return YES;
}
Related Contents:
- Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?
- display image from URL retrieved from ALAsset in iPhone
- How to call Objective-C from Javascript?
- UIWebView to view self signed websites (No private api, not NSURLConnection) – is it possible?
- UIWebView – How to identify the “last” webViewDidFinishLoad message?
- Return to app behavior after phone call different in native code than UIWebView
- HTML Content fit in UIWebview without zooming out
- iPhone Development – Setting UIWebView font
- iOS WebView remote html with local image files
- UIWebView: when did a page really finish loading?
- How to clear UIWebView cache?
- How to save the content in UIWebView for faster loading on next launch?
- Get current URL of UIWebView
- UIWebView didFinishLoading fires multiple times
- how to increase font size in UIWebView
- Does UIWebView send the same User-Agent in the Request Headers as mobile Safari?
- Is it possible for a UIWebView to save and autofill previously entered form values (e.g., username & password)?
- Get push notification while App in foreground iOS
- Subclass UIButton to add a property
- OpenGL Texture Coordinates in Pixel Space
- Share image/text through WhatsApp in an iOS app
- Calculate new coordinate x meters and y degree away from one coordinate
- Notification of or detecting screenshot before being taken?
- Open Source Cocoa/Cocoa-Touch POP3/SMTP library?
- Select tableview row programmatically
- How do I query the ARP table on iPhone?
- AVPlayerItem fails with AVStatusFailed and error code “Cannot Decode”
- Inner shadow effect on UIView layer?
- Implementation of “Automatic Lightweight Migration” for Core Data (iPhone)
- How to get the color of a pixel in an UIView?
- iPhone: Incrementing the application badge through a local notification
- What are pixels and points in iOS?
- iPhone ivar naming convention [duplicate]
- SQLite Exception: SQLite Busy
- Fixed labels in the selection bar of a UIPickerView
- Best way to save data on the iPhone
- Break on EXC_BAD_ACCESS in Xcode?
- MKPinAnnotationView: Are there more than three colors available?
- How to change the format of date in date picker
- How to detect that animation has ended on UITableView beginUpdates/endUpdates?
- MKMapView annotations changing/losing order?
- Opening Native App. from Safari
- Clearing purchases from iOS in-app purchase sandbox for a test user
- Best Cocoa/Objective-C Wrapper Library for SQLite on iPhone [closed]
- Accessing & Using the MobileWiFi.framework
- iphone XMPP App run background
- How do I parse an NSString containing XML in Objective-C?
- What’s the difference between using CGFloat and float?
- Getting an error from push notification
- Text in UITextField moves up after editing (center while editing)