Wednesday, June 8, 2011

Create rounded corner view

1. #import <QuartzCore/QuartzCore.h>
2. Create a view, ex. named v
3. [v.layer setCornerRadius:8.0f] ;
4. [v.layer setMasksToBounds:YES] ;


Make sure you DO include QuartzCore/QuartzCore.h even compiler doesn't complain about it.

No comments:

Check clients which connect to Mac OS X Wi-Fi Internet Sharing

arp -i bridge100 -a bridge100 may be different on your Mac OSX