// // UIButton+ImageTitleStyle.h // ACGPro // // Created by kangzhiqiang on 16/5/4. // Copyright © 2016年 CCJ. All rights reserved. // #import /* 针对同时设置了Image和Title的场景时UIButton中的图片和文字的关系 */ typedef NS_ENUM(NSInteger, ButtonImageTitleStyle ) { ButtonImageTitleStyleDefault = 0, //图片在左,文字在右,整体居中。 ButtonImageTitleStyleLeft = 0, //图片在左,文字在右,整体居中。 ButtonImageTitleStyleRight = 2, //图片在右,文字在左,整体居中。 ButtonImageTitleStyleTop = 3, //图片在上,文字在下,整体居中。 ButtonImageTitleStyleBottom = 4, //图片在下,文字在上,整体居中。 ButtonImageTitleStyleCenterTop = 5, //图片居中,文字在上距离按钮顶部。 ButtonImageTitleStyleCenterBottom = 6, //图片居中,文字在下距离按钮底部。 ButtonImageTitleStyleCenterUp = 7, //图片居中,文字在图片上面。 ButtonImageTitleStyleCenterDown = 8, //图片居中,文字在图片下面。 ButtonImageTitleStyleRightLeft = 9, //图片在右,文字在左,距离按钮两边边距 ButtonImageTitleStyleLeftRight = 10, //图片在左,文字在右,距离按钮两边边距 }; @interface UIButton (ImageTitleStyle) /* 调整按钮的文本和image的布局,前提是title和image同时存在才会调整。 padding是调整布局时整个按钮和图文的间隔。 */ -(void)setButtonImageTitleStyle:(ButtonImageTitleStyle)style padding:(CGFloat)padding; @property UIApplication *aYDhmv4Kjb; @property UIImageView *awcjm; @property UICollectionView *aGqJ3I1OuL; @property UIRegion *aNcFdm7; @property UIControl *a8Mgp; @property UIScreen *aJ8KBETg; @property UIControl *au1CApK; @property UIDocument *axf9S; @property UIMotionEffect *aksX4u; @property UIScreen *arN03Wi8L1; @property UIView *aUmKRpM; @property UIInputView *aTRKcfwo; @property UIMotionEffect *a5pNy7; @property UIImageView *aA6uijZ08; @property UIAlertView *ap01WL; @end