iphone - Cocoa Touch: How To Change UIView's Border Color And Thickness? -


i saw in inspector can change background color, i'd change border color , thickness, possible?

thanks

you need use view's layer set border property. e.g:

#import <quartzcore/quartzcore.h> ... view.layer.bordercolor = [uicolor redcolor].cgcolor; view.layer.borderwidth = 3.0f; 

you need link quartzcore.framework access functionality.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -