I recommend using a network approach, while placing images and title, but how trials are unsuccessful, is there anyone know how to do is the right approach.
[Mybtn setImage: [UIImage imageNamed: @ "aaaa.png"] forState: UIControlStateNormal];
[Mybtn setTitle: @ "Title here" forState: UIControlStateNormal];
[Mybtn setImageEdgeInsets: UIEdgeInsetsMake (-8, 0, 0, 0)];
[Mybtn setTitleEdgeInsets: UIEdgeInsetsMake (0, 0, -60, 0)];
Reply:
The complete code can be written
Also, what is unsuccessful? title does not display still image does not show?
Reply:
In fact, to be successful, but the default font is white. . You click a button to change the background color or font color
Reply:
The setImage replaced setBackgroundImage
Set a picture as a background image, so that should be fine.
Reply:
I ask you how to solve this problem? I am now setimage and the title can not be discovered after the title display
Reply:
Setting the wrong place, at the button displayed outside the
No comments:
Post a Comment