Monday, October 15, 2012

Remove UIWebView's key bord top bar.


UIWindow *keyboardWindow = nil;
- (void)removeBar { 
    // Locate UIWebFormView.
    for (UIWindow *testWindow in [[UIApplication sharedApplication] windows]) {
        if (![[testWindow class] isEqual:[UIWindow class]]) {
            keyboardWindow = testWindow;
            // Locate UIWebFormView.
            for (UIView *possibleFormView in [keyboardWindow subviews]) {       
                // iOS 5 sticks the UIWebFormView inside a UIPeripheralHostView.
                if ([[possibleFormView description] rangeOfString:@"UIPeripheralHostView"].location != NSNotFound) {
                    for (UIView *subviewWhichIsPossibleFormView in [possibleFormView subviews]) {
                        NSRange range = [[subviewWhichIsPossibleFormView description] rangeOfString:@"UIWebFormAccessory"];
                        if (range.location != NSNotFound) {
                            [subviewWhichIsPossibleFormView removeFromSuperview]; 
                        }
                    }
                }
            } 
        }
    }   
}

Sunday, October 7, 2012

UIWebView insert Items



  • Insert Image
<img src="imagePath/imageName.png" width ="280px" height = "187px"/><br />

  • Insert Link
with Title
<a href='http://www.link.com/' style='color:#fd9600;'>LinkTitle</a>
with Image
<a href='http:///www.link.com'><img src='imagePath/image.jpg' width ='280px' height = '179px'/></a>