- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
// intercepting web click in the webView
NSLog(@"%@, %i", [request.URL absoluteString], navigationType);
}
Don’t forget to set <UIWebViewDelegate>
delegate link Objective-C UIWebView UIWebViewNavigationType
289Simulating Keyboard & Mouse Events. And Key-Modifier Events
269Caching on Objective-C with NSURLCache
265Like explode(), only componentsSeparatedByString:
259The mystery of self.* – resolved?
220Linking libxml2 in Xcode
How to link libxml2 in Xcode for use with TouchXML?
1. Copy TouchXML files. They are wrappers to libxml2.
2. Instead of copying an extra copy of libxml2 to the project frameworks, add the following to the target information:
Header Search Paths:
/usr/include/libxml2
Other Linker Flags:
-lxml2
(Of course assuming, that libxml2 is present at this location on your system.)
In the Target Info, make sure to select the current configuration to see the values. Otherwise you get <Multiple Values> and they look like it’s not possible to edit them. Took me a while to figure out, that changing the configuration [top left] was the key. Duh.
libxml2 link Multiple Values TouchXML Xcode xml
379Never use a beta SDK for active development
365Project templates for PyObjC and RubyCocoa
275UIWebView – checking when user clicks a link
214NSMutableArray: setObject vs. setValue
206NSXMLParser vs libxml2