GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - iOSCommonLibrary/AutoAlignButton: Lightweight automatic card layout package (attached: Swift version option package)

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

57 Commits
57 Commits

Folders and files

NameName
Last commit message
Last commit date
AutoAlignButtonDemo.xcodeproj
AutoAlignButtonDemo.xcodeproj
 
 
AutoAlignButtonDemo
AutoAlignButtonDemo
 
 
AutoAlignButtonDemoTests
AutoAlignButtonDemoTests
 
 
AutoAlignButtonDemoUITests
AutoAlignButtonDemoUITests
 
 
.travis.yml
.travis.yml
 
 
Podfile
Podfile
 
 
README.md
README.md
 
 
README_zh.md
README_zh.md
 
 

Repository files navigation

AutoAlignButton

CocoaPods  Build Status

image

EN | δΈ­ζ–‡

Routine development on the card layout needs a lot, and the the CollectionView heavy and heavy, wanted to package a lightweight card layout tools, based on the UIButton follow-up and make up UICollectionView and UILabel based on the realization of support for pictures, text , Adaptive layout and gestures, the use of safe and convenient. (Swift version: https://github.com/ReverseScale/AutoAlignButtonSwift)

🎨 What does the test UI look like?

1. Multiple implementation list page 2 based on the Button implementation 3 based on the Label implementation 4 graphic mixed Button implementation
Through the storyboard to build the basic UIButton + UIView implementation UILabel + UIView implementation Graphic and textual hybrid implementation based

πŸš€ Advantage

    1. Lightweight architecture, fewer files, concise code
    1. Do not rely on any other third-party libraries
    1. Separate graphics and text button to achieve
    1. Support SDWebImage or YYWebImage extension
    1. Have a higher custom

πŸ€– Requirements

  • iOS 7+
  • Xcode 8+

🎯 Installation

1. Manual installation:

After downloading the Demo, drag the function folder into the project and start using the header file.

2.CocoaPods Installation:

Modify "Podfile" file

pod 'AutoAlignButtonTools',:git => 'https://github.com/ReverseScale/AutoAlignButtonToolsCocoapodsDemo.git'

Console Execute Pods Installation Command (Simplified Installation: pod install --no-repo-update)

pod install

If the pod search found is not the latest version, the terminal pod setup command to update the local spec image cache, search again OK

πŸ›  Usage

AutoAlignButtonView wrapper method

1. The basic method

/*
* Whether Jiugongge acquiescence: open
*/
@property (nonatomic, assign) BOOL isScratchableLatex;
/*
* Is: automatic layout
* countHorizonal Number of horizontal rows of nine squares
*/
@property (nonatomic, assign) NSInteger countHorizonal;
/*
Is: automatic layout
* countHorizonal Number of horizontal rows of a square grid a * No: Parameter layout
* buttonVerticalPadding Vertical spacing
* buttonHorizonalPadding horizontal spacing
*/
@property (nonatomic, assign) CGFloat buttonVerticalPadding;
@property (nonatomic, assign) CGFloat buttonHorizonalPadding;

2. ways to enhance

/*
* Whether to open the fillet default: Turn off the open according to the need to set the fillet parameters (off-screen rendering to be optimized)
*/
@property (nonatomic, assign) BOOL isCornerRadius;


// Data Source (Required Method)
@property (nonatomic, copy) NSArray *dataTitleArray;
@property (nonatomic, copy) NSArray *dataImagesArray;

// Click event delegate
@property (nonatomic, weak) id<AutoAlignButtonViewDelegate> delegate;

βš– Protocol

MIT License

Copyright (c) 2017 ReverseScale

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

😬 Contact:

  • WeChat : WhatsXie
  • Email : [email protected]
  • Blog : https://reversescale.github.io

About

Lightweight automatic card layout package (attached: Swift version option package)

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.