ios - Draw the frame on the button edge -


i have buttons. need mark of them. make frames. can realize it? can draw frame on buttons edge?

add quartzcore framework project. modify buttons follows:

#import <quartzcore/quartzcore.h>  .........  button.layer.borderwidth = 5.0f; button.layer.bordercolor = [[uicolor blackcolor] cgcolor]; button.layer.cornerradius = 5.0; //optional, if need rounded corners 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -