English 中文(简体)
• 如何与四舍五入的玉米建立联系?
原标题:How make webview with Rounded Rectangle corners?
  • 时间:2009-11-13 04:53:45
  •  标签:
  • iphone

我希望我与四舍五入的累进角进行网上讨论。

任何帮助?

最佳回答

在这方面:

//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框架,它只是运行和运行;=OS3.0。

问题回答

你可以在网上增加一些掩盖形象。 这样一来,你就能够改变你网站内容的明显部分。





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签