2009-11-13 18 views

उत्तर

15

आइए जानें:

//first, you 
#import <QuartzCore/QuartzCore.h> 

//..... 

//In your method, where you add your UIWebView, do: 
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(50, 220, 200, 100)]; 

//The rounded corner part: 
webView.layer.cornerRadius = 5; 
webView.clipsToBounds = YES; 

//Load a web site: 
[webView loadRequest: [NSURLRequest requestWithURL: 
       [NSURL URLWithString:@"http://www.stackoverflow.com/"]]]; 

//yourView is the UIView's superview, might be the window, or anything you want 
[yourView addSubview: webView]; 
[webView release]; 

यह QuartzCore फ्रेमवर्क का उपयोग करते हैं, और यह केवल> = OS 3.0

+0

धन्यवाद luvieere – Nic

+0

नमस्कार बहुत बहुत धन्यवाद, और कोड ओएस 3.0 पर भी काम कर रहा है। :-) – Nic

+0

संपादित: डी अब यह है> = ओएस 3.0 – luvieere

1

आप अपने वेब व्यू पर कुछ मास्क छवि जोड़ सकते हैं। इस तरह से आप अपने वेब-दृश्य के दृश्य भाग के रूप में बदल सकते हैं

संबंधित मुद्दे