I use custom button in my app named \"addButton\" and I want to border it with white color how can i get the white color border around my custom button?
You don't need to import QuartzCore.h now. Taking iOS 8 sdk and Xcode 6.1 in referrence.
QuartzCore.h
Directly use:
[[myButton layer] setBorderWidth:2.0f]; [[myButton layer] setBorderColor:[UIColor greenColor].CGColor];