Skip to content

soleaf/MintKit

Repository files navigation

logo

MintKit Build Status

MintKis is a simple fundemental iOS coding utils package based Objective-C, For only convenience on coding. It help you don't bother about fundemental functions or implementing simple functions.

  • Handling NSString
  • Add Shadow, border .. etc layers with One line code
  • Move, Resize UIView very easy One line code
  • Automatic Check NSString is null and Put TextFieldText, UIButtonTitle.
  • Etc... Better Tools for iOS Developers.

Example of codebase down.

This Code make AttributedString with Highlighted some strs in fullText

Before Code)

NSString *titleStr = @"FULL TEXT IN HIGHLIGHT"";
NSString *highlightStr = @"HIGHLIGHT";
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc]initWithString:titleStr];
NSRange range = [titleStr rangeOfString:highlightStr];
[attributedString addAttribute:NSForegroundColorAttributeName value:titleColor range:NSMakeRange(0, titleStr.length)];
[attributedString addAttribute:NSForegroundColorAttributeName value:highlightColor range:range];

MintKit Code)

[UIRobot makeAttribuedTitle:@"FULL TEXT IN HIGHLIGHT"
                                 textColor:[UIColor blackColor]
                             highilightStr:@"HIGHLIGHT"
                                     color:[UIColor redColor]];

Contribute

It's now basic and immature. So, It need other's contributions. For make adding new fuction or modification better performance.. etc, Commit frankly! Thank you. Welcome Together Coding Anyone!

This Project in mintcode.org

http://www.mintcode.org

How To Get Started

###Only Use Compiled Library Just copy Files on Release folder and Link Your project!

There is Sample Project for Installing. Check mintKitSample.xcodeproj on WorkSpace or '/Sample'

  1. Download or Clone to any directory.
  2. Copy folder /Release/MintKit into your project folder.
  3. Open your project
  4. Project Setting > Target > Build Phases> Link Binary With Libraries> Add 'libMintKit-Aggregate.a' in your project directory
  5. … > Build Setting > search Header Search Paths and Add "$(SRCROOT)/Lib/MintKit/Headers" ('Lib' is my location. If You use other location for MintKit, change it.)
  6. Project Setting > Target > Build Settings> Set Always Search User Paths -> 'YES'
  7. Use It! with import headers MintKit/[header]
#import <MintKit/mintKit.h>
(...)
[mintKit hello];

Reference Document Wiki

###Compile and Use

  1. Download or Clone to any directory.
  2. Open MintKit Project in Xcode.
  3. Build
    • Build 'Library-Simulator' > iPhone simulator
    • Build 'Library-Device' > iOS Device
    • Build 'Library-Aggregate' > iOS Device
  4. Copy to Your Project folder
    • Copy folder /Release/MintKit into your project folder.
  5. Link Library
    • Open your project
    • Project Setting > Target > Build Phases> Link Binary With Libraries> Add 'libMintKit-Aggregate.a' on your project directory
    • … > Build Setting > search Header Search Paths and Add "$(SRCROOT)/Lib/MintKit/Headers" ('Lib' is my location. If You use other location for MintKit, change it.)
    • Project Setting > Target > Build Settings> Set Always Search User Paths -> 'YES'
  6. Use It! with import headers MintKit/[header]
#import <MintKit/mintKit.h>
(...)
[mintKit hello];

Reference Document Wiki

Library Summary

Will update soon for detail method informations.

IF YOU WANT DETAIL HOW TO USE METHODS, CHECK `ANY HEADER FILES` AND `REFERENCE`

REFERENCE HERE

Requirement

  • ARC
  • Frameworks
    • QuartzCore.framework
    • UIkit.framework
    • CoreGraphics.framework

Todo

  • Updating Documents
  • Reorganize methods

Credits

mintcode.org. milk@mintcode.org

About

Common Library for iOS Application Developer

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages