Skip to content

Layout Image and Title.调整图片与标题的位置.

License

Notifications You must be signed in to change notification settings

xjh093/JHAdjustButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JHAdjustButton

Layout Image and Title. 调整图片与标题的位置.

What

  • Image Left, Title Right

image

  • Image Right, Title Left

image

  • Image Top, Title Bottom

image

  • Image Bottom, Title Top

image

Example

    _adjButton1 = [self setupButton:CGRectMake(50, 50, 200, 80) title:@"red rose" image:@"rose"];
    _adjButton1.padding = UIEdgeInsetsMake(5, 5, 5, 5);
    _adjButton1.betweenSpace = 10;
    _adjButton1.imageSize = CGSizeMake(25, 26);

Log

  • 1.upload - v1.0.0 (2022-01-21 12:35:35)

More Detail in Demo

Download and Run it~