iphone Programming Glossary: setcornerradius
Set border around UIImageView http://stackoverflow.com/questions/11192190/set-border-around-uiimageview borderLayer setBackgroundColor UIColor clearColor CGColor borderLayer setFrame borderFrame borderLayer setCornerRadius kCornerRadius borderLayer setBorderWidth kBorderWidth borderLayer setBorderColor UIColor redColor CGColor imageView.layer..
Rounded Corners on UIImage http://stackoverflow.com/questions/205431/rounded-corners-on-uiimage UIImage imageNamed @ wood.jpg Get the Layer of any view CALayer l roundedView layer l setMasksToBounds YES l setCornerRadius 10.0 You can even add a border l setBorderWidth 4.0 l setBorderColor UIColor blueColor CGColor share improve this answer..
Rounded UIView using CALayers - only some corners - How? http://stackoverflow.com/questions/2264083/rounded-uiview-using-calayers-only-some-corners-how NSData dataWithContentsOfURL NSURL URLWithString @ any Url Here CALayer l imgVUserImg layer l setMasksToBounds YES l setCornerRadius 5.0 l setBorderWidth 2.0 l setBorderColor UIColor darkGrayColor CGColor Above code is applying the roundness to each of..
Can't add a corner radius and a shadow http://stackoverflow.com/questions/3316424/cant-add-a-corner-radius-and-a-shadow a UIView subclass. So this works whenever I set layer setMasksToBounds NO Now to add a corner radius I do this layer setCornerRadius 7.0f but I need to set MasksToBounds to YES in order for this to work layer setMasksToBounds YES Is there anyway I can get.. CGSizeMake 0 3 layer setShadowOpacity 0.4 layer setShadowRadius 3.0f layer setShouldRasterize YES layer setCornerRadius 12.0f layer setShadowPath UIBezierPath bezierPathWithRoundedRect self bounds cornerRadius 12.0f CGPath You might want.. works' but I'll provide it for posterity sake. To recap this is now all you need layer setShadowOpacity 0.4 layer setCornerRadius 12.0f If you still need better performance you can go ahead and set the shouldRasterize parameter as well layer setShouldRasterize..
Quartz based drop shadows don't work for me on UITextView http://stackoverflow.com/questions/4401730/quartz-based-drop-shadows-dont-work-for-me-on-uitextview CGColor desc.layer setBorderColor UIColor blackColor CGColor desc.layer setBorderWidth 1.0f desc.layer setCornerRadius 8.0f iphone uitextview quartz graphics shadow share improve this question I know that the drop shadow doesn't work..
UIView with rounded corners and drop shadow? http://stackoverflow.com/questions/4754392/uiview-with-rounded-corners-and-drop-shadow question The following code snippet adds a border border radius and drop shadow to v a UIView border radius v.layer setCornerRadius 30.0f border v.layer setBorderColor UIColor lightGrayColor .CGColor v.layer setBorderWidth 1.5f drop shadow v.layer setShadowColor..
UIButton color issues http://stackoverflow.com/questions/4909637/uibutton-color-issues on my UIButton. Here is my current code UIButton b1 UIButton alloc init b1.frame CGRectMake 280 395 30 30 b1 layer setCornerRadius 8.0f b1 layer setMasksToBounds YES b1 layer setBorderWidth 1.0f b1 layer setBackgroundColor botCol CGColor b1.titleLabel.font..
How to set round corners in UI images in iphone http://stackoverflow.com/questions/5752667/how-to-set-round-corners-in-ui-images-in-iphone
How to crop UIImage on oval shape or circle shape? http://stackoverflow.com/questions/6530573/how-to-crop-uiimage-on-oval-shape-or-circle-shape share improve this question `#import QuartzCore QuartzCore.h ` CALayer imageLayer YourImageview.layer imageLayer setCornerRadius 5 imageLayer setBorderWidth 1 imageLayer setMasksToBounds YES by increasing radius it will become more round able. share..
UIBarButtonItem with color? http://stackoverflow.com/questions/664930/uibarbuttonitem-with-color forState UIControlStateNormal button.titleLabel.font UIFont fontWithName @ Helvetica Bold size 12.0f button.layer setCornerRadius 4.0f button.layer setMasksToBounds YES button.layer setBorderWidth 1.0f button.layer setBorderColor UIColor grayColor CGColor..
cellForRowAtIndexPath memory management http://stackoverflow.com/questions/8859735/cellforrowatindexpath-memory-management objectAtIndex imageIndex imageView.frame CGRectMake 8 9 44 44 imageView.layer setMasksToBounds YES imageView.layer setCornerRadius 3.0 cell contentView addSubview imageView imageView release label release return cell To explain what's going on basically.. init imageView.frame CGRectMake 8 9 44 44 imageView.tag imageTag imageView.layer setMasksToBounds YES imageView.layer setCornerRadius 3.0 cell contentView addSubview imageView imageView release NSInteger artistIndex 1 1 NSInteger albumIndex 3 3 NSInteger..
UIButton title disappears http://stackoverflow.com/questions/9312876/uibutton-title-disappears @ Commit_Border commit.layer setBorderColor color CGColor commit.layer setBorderWidth 0.5f commit.layer setCornerRadius 10.0f iphone objective c uibutton share improve this question Well it's hard to say for sure but is the text not visible..
|