I want to creat an UIButton programmatically with the title under the imageView.
Size of the button : 170 * 120 Size of the imge : 50 * 50 Size of the title : depend of the text.
I know I'have to use but I don't know how :
[_button setTitleEdgeInsets:UIEdgeInsetsMake(0.f, 0.f, 0.f, 0.f)];
[_button setImageEdgeInsets:UIEdgeInsetsMake(0.f, 0.f, 0.f, 0.f)];
I think I should calculate the size of the title and then Use the EdgeInsets.
Thank you.