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.
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]];
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
###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'
- Download or Clone to any directory.
- Copy folder
/Release/MintKit
into your project folder. - Open your project
- Project Setting > Target > Build Phases>
Link Binary With Libraries
> Add 'libMintKit-Aggregate.a' in 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'
- Use It! with import headers
MintKit/[header]
#import <MintKit/mintKit.h>
(...)
[mintKit hello];
Reference Document Wiki
###Compile and Use
- Download or Clone to any directory.
- Open MintKit Project in Xcode.
- Build
- Build 'Library-Simulator' > iPhone simulator
- Build 'Library-Device' > iOS Device
- Build 'Library-Aggregate' > iOS Device
- Copy to Your Project folder
- Copy folder
/Release/MintKit
into your project folder.
- Copy folder
- 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'
- Use It! with import headers
MintKit/[header]
#import <MintKit/mintKit.h>
(...)
[mintKit hello];
Reference Document Wiki
Will update soon for detail method informations.
IF YOU WANT DETAIL HOW TO USE METHODS, CHECK `ANY HEADER FILES` AND `REFERENCE`
REFERENCE HERE
- ARC
- Frameworks
- QuartzCore.framework
- UIkit.framework
- CoreGraphics.framework
- Updating Documents
- Reorganize methods
mintcode.org. milk@mintcode.org