Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
soleaf committed Nov 19, 2013
1 parent 970d575 commit 95f838f
Show file tree
Hide file tree
Showing 39 changed files with 280 additions and 87 deletions.
37 changes: 0 additions & 37 deletions Release/MintKit/headers/MintKit/Consol.h

This file was deleted.

1 change: 1 addition & 0 deletions Release/MintKit/headers/MintKit/DateTimeSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@
+ (DateTimeSet*)makeDateTimeSetYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day;
+ (DateTimeSet*)makeDateTimeSetHour:(NSInteger)hour minute:(NSInteger)minute second:(NSInteger)second;
+ (DateTimeSet*)makeDateTimeSetYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day hour:(NSInteger)hour minute:(NSInteger)minute second:(NSInteger)second;

@end
4 changes: 4 additions & 0 deletions Release/MintKit/headers/MintKit/DateUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@
andMonth:(NSInteger) theMonth
andDay:(NSInteger) theDay;

+ (DateTimeSet*)getNextDayOf:(DateTimeSet*) originDay;
+ (DateTimeSet*)getPrevDayOf:(DateTimeSet*) originDay;

// Get Last day of month by NSDate
+ (NSInteger) getLastDayOfMonth:(NSDate*) date;
+ (NSInteger) getLastDayOfMonth:(NSInteger)month andYear:(NSInteger)year;

+ (BOOL) dateDic:(NSDictionary*)dateDic isEqualTo:(NSDictionary*) comparison;

Expand Down
1 change: 1 addition & 0 deletions Release/MintKit/headers/MintKit/DeviceUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

// Is iPhone?
+ (BOOL) isiPhone;
+ (NSString*) modelString;


/*
Expand Down
5 changes: 4 additions & 1 deletion Release/MintKit/headers/MintKit/FormValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
return [FromValidation limitLength:5 onTextField:textfiled inRange:range replaceString:string];
}
*/
+(BOOL) limitLength:(NSInteger) limit onTextField:(UITextField *)textField inRange:(NSRange)range replaceString:(NSString *)string;
+(BOOL) limitLength:(NSInteger) limit
onTextField:(UITextField *)textField
inRange:(NSRange)range
replaceString:(NSString *)string;

@end
3 changes: 3 additions & 0 deletions Release/MintKit/headers/MintKit/FormatUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@
// ex) cutAddress:@"aa bb cc" limit:2 -> return @"aa bb";
+ (NSString*) cutAddress:(NSString *)addressStr limit:(NSInteger) limit;

// Currency Format 1000 -> 1,000
+ (NSString *)toCurrency:(NSNumber*)number;

@end
3 changes: 3 additions & 0 deletions Release/MintKit/headers/MintKit/GraphicsUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
// Rsize Image to newSize
+ (UIImage*)resizeWithImage:(UIImage*)image toSize:(CGSize)newSize;

// Hexcode to UIColor
+ (UIColor*)uiColorWithHexString:hexString;

@end
4 changes: 3 additions & 1 deletion Release/MintKit/headers/MintKit/UIVIewControllerUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
*/

// Show BackButtonIn UIViewNavigationBar With Custome Image
+ (void) showBackButton:(UIViewController *)view title: (NSString *) titleText andImageNamed: (NSString *) imgName;
+ (void) showBackButton:(UIViewController *)view
title: (NSString *) titleText
andImageNamed: (NSString *) imgName;


/*
Expand Down
35 changes: 28 additions & 7 deletions Release/MintKit/headers/MintKit/UIViewLayerUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,38 @@
@interface UIViewLayerUtil : NSObject

// Drop shadows
+ (void)dropShadow:(UIView *)view Opacity:(float)opacity andOffset:(CGSize)offset andColor:(UIColor *)color radius:(float)radius;
+ (void) dropShadow:(UIView *) view Opacity:(float)opacity andOffset:(CGSize) offset andColor:(UIColor*) color;
+ (void) dropShadow:(UIView *) view Opacity:(float)opacity andOffset:(CGSize) offset;
+ (void)dropShadow:(UIView *)view
Opacity:(float)opacity
andOffset:(CGSize)offset
andColor:(UIColor *)color
radius:(float)radius;

+ (void) dropShadow:(UIView *) view
Opacity:(float)opacity
andOffset:(CGSize) offset
andColor:(UIColor*) color;

+ (void) dropShadow:(UIView *) view
Opacity:(float)opacity
andOffset:(CGSize) offset;

// Fill vertical gradient
+ (void) gradient:(UIView *) view start:(UIColor *)startColor endColor:(UIColor*) endColor;
+ (void) gradient:(UIView *) view colors:(NSArray*)colorArray; // (colorArray: UIColor array)
+ (void) gradient:(UIView *) view
start:(UIColor *)startColor
endColor:(UIColor*) endColor;

+ (void) gradient:(UIView *) view
colors:(NSArray*)colorArray; // (colorArray: UIColor array)

// Make border
+ (void) border:(UIView*) view size:(float) size andColor:(UIColor*) color;
+ (void) border:(UIView*) view size:(float) size andColor:(UIColor*) color andRadius:(float) radius;
+ (void) border:(UIView*) view
size:(float) size
andColor:(UIColor*) color;

+ (void) border:(UIView*) view
size:(float) size
andColor:(UIColor*) color
andRadius:(float) radius;


@end
Binary file modified Release/MintKit/libMintKit.a
Binary file not shown.
6 changes: 6 additions & 0 deletions Sample/Lib/MintKit/headers/MintKit/DateTimeSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
@property NSInteger year, month, day;

- (NSString *)description;
- (BOOL)isEqualToDateTimes:(DateTimeSet*) target;
- (BOOL)isEqualToDate:(DateTimeSet*) target;
- (BOOL)isEqualToTime:(DateTimeSet*) target;

+ (DateTimeSet*)makeDateTimeSetYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day;
+ (DateTimeSet*)makeDateTimeSetHour:(NSInteger)hour minute:(NSInteger)minute second:(NSInteger)second;
+ (DateTimeSet*)makeDateTimeSetYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day hour:(NSInteger)hour minute:(NSInteger)minute second:(NSInteger)second;

@end
8 changes: 6 additions & 2 deletions Sample/Lib/MintKit/headers/MintKit/DateUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
For easy using Date calculation.
*/

@interface DateUtil : NSObject

#define DATEDIC_YEAR @"year"
#define DATEDIC_MONTH @"month"
#define DATEDIC_DAY @"day"


/*
Convert NSDate, NSDictionary, DateTimeSet
*/
Expand Down Expand Up @@ -72,10 +72,14 @@
andMonth:(NSInteger) theMonth
andDay:(NSInteger) theDay;

+ (DateTimeSet*)getNextDayOf:(DateTimeSet*) originDay;
+ (DateTimeSet*)getPrevDayOf:(DateTimeSet*) originDay;

// Get Last day of month by NSDate
+ (NSInteger) getLastDayOfMonth:(NSDate*) date;
+ (NSInteger) getLastDayOfMonth:(NSInteger)month andYear:(NSInteger)year;


+ (BOOL) dateDic:(NSDictionary*)dateDic isEqualTo:(NSDictionary*) comparison;


@end
1 change: 1 addition & 0 deletions Sample/Lib/MintKit/headers/MintKit/DeviceUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

// Is iPhone?
+ (BOOL) isiPhone;
+ (NSString*) modelString;


/*
Expand Down
5 changes: 4 additions & 1 deletion Sample/Lib/MintKit/headers/MintKit/FormValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
return [FromValidation limitLength:5 onTextField:textfiled inRange:range replaceString:string];
}
*/
+(BOOL) limitLength:(NSInteger) limit onTextField:(UITextField *)textField inRange:(NSRange)range replaceString:(NSString *)string;
+(BOOL) limitLength:(NSInteger) limit
onTextField:(UITextField *)textField
inRange:(NSRange)range
replaceString:(NSString *)string;

@end
3 changes: 3 additions & 0 deletions Sample/Lib/MintKit/headers/MintKit/FormatUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@
// ex) cutAddress:@"aa bb cc" limit:2 -> return @"aa bb";
+ (NSString*) cutAddress:(NSString *)addressStr limit:(NSInteger) limit;

// Currency Format 1000 -> 1,000
+ (NSString *)toCurrency:(NSNumber*)number;

@end
3 changes: 3 additions & 0 deletions Sample/Lib/MintKit/headers/MintKit/GraphicsUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
// Rsize Image to newSize
+ (UIImage*)resizeWithImage:(UIImage*)image toSize:(CGSize)newSize;

// Hexcode to UIColor
+ (UIColor*)uiColorWithHexString:hexString;

@end
14 changes: 14 additions & 0 deletions Sample/Lib/MintKit/headers/MintKit/UIRobot.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,18 @@
+ (void) putIfNotnillOrLength0:(NSString *)str toButton:(UIButton*) target;
+ (void) putIfNotnillOrLength0:(NSString *)str toLabel:(UILabel*) target;


/*
AttributedString
*/

+ (NSAttributedString *)makeAttribuedTitle:(NSString *)titleStr
highilightStr:(NSString *)highlightStr
color:(UIColor *)highlightColor;

+ (NSAttributedString *)makeAttribuedTitle:(NSString *)titleStr
textColor:(UIColor *)titleColor
highilightStr:(NSString *)highlightStr
color:(UIColor *)highlightColor;

@end
4 changes: 3 additions & 1 deletion Sample/Lib/MintKit/headers/MintKit/UIVIewControllerUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
*/

// Show BackButtonIn UIViewNavigationBar With Custome Image
+ (void) showBackButton:(UIViewController *)view title: (NSString *) titleText andImageNamed: (NSString *) imgName;
+ (void) showBackButton:(UIViewController *)view
title: (NSString *) titleText
andImageNamed: (NSString *) imgName;


/*
Expand Down
35 changes: 28 additions & 7 deletions Sample/Lib/MintKit/headers/MintKit/UIViewLayerUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,38 @@
@interface UIViewLayerUtil : NSObject

// Drop shadows
+ (void)dropShadow:(UIView *)view Opacity:(float)opacity andOffset:(CGSize)offset andColor:(UIColor *)color radius:(float)radius;
+ (void) dropShadow:(UIView *) view Opacity:(float)opacity andOffset:(CGSize) offset andColor:(UIColor*) color;
+ (void) dropShadow:(UIView *) view Opacity:(float)opacity andOffset:(CGSize) offset;
+ (void)dropShadow:(UIView *)view
Opacity:(float)opacity
andOffset:(CGSize)offset
andColor:(UIColor *)color
radius:(float)radius;

+ (void) dropShadow:(UIView *) view
Opacity:(float)opacity
andOffset:(CGSize) offset
andColor:(UIColor*) color;

+ (void) dropShadow:(UIView *) view
Opacity:(float)opacity
andOffset:(CGSize) offset;

// Fill vertical gradient
+ (void) gradient:(UIView *) view start:(UIColor *)startColor endColor:(UIColor*) endColor;
+ (void) gradient:(UIView *) view colors:(NSArray*)colorArray; // (colorArray: UIColor array)
+ (void) gradient:(UIView *) view
start:(UIColor *)startColor
endColor:(UIColor*) endColor;

+ (void) gradient:(UIView *) view
colors:(NSArray*)colorArray; // (colorArray: UIColor array)

// Make border
+ (void) border:(UIView*) view size:(float) size andColor:(UIColor*) color;
+ (void) border:(UIView*) view size:(float) size andColor:(UIColor*) color andRadius:(float) radius;
+ (void) border:(UIView*) view
size:(float) size
andColor:(UIColor*) color;

+ (void) border:(UIView*) view
size:(float) size
andColor:(UIColor*) color
andRadius:(float) radius;


@end
Binary file modified Sample/Lib/MintKit/libMintKit.a
Binary file not shown.
19 changes: 8 additions & 11 deletions Sample/mintKitSample/en.lproj/MainStoryboard.storyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="3084" systemVersion="12E55" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="4514" systemVersion="12F45" targetRuntime="iOS.CocoaTouch" variant="6xAndEarlier" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="2083"/>
<deployment defaultVersion="1552" identifier="iOS"/>
<development version="4600" identifier="xcode"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
</dependencies>
<scenes>
<!--View Controller-->
Expand All @@ -13,16 +15,18 @@
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="27Q-Bk-HYw">
<rect key="frame" x="124" y="214" width="72" height="44"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="Button">
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleColor" red="0.19607843137254902" green="0.30980392156862746" blue="0.52156862745098043" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<state key="highlighted">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="ViewConsole!" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OtU-IU-Kh5">
<rect key="frame" x="108" y="179" width="104" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
Expand All @@ -42,16 +46,9 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="498" y="791"/>
</scene>
</scenes>
<classes>
<class className="NSLayoutConstraint" superclassName="NSObject">
<source key="sourceIdentifier" type="project" relativePath="./Classes/NSLayoutConstraint.h"/>
</class>
<class className="ViewController" superclassName="UIViewController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/ViewController.h"/>
</class>
</classes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
Expand Down
4 changes: 2 additions & 2 deletions mintKit/mintKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "rm -rf ${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a\n\nlipo -create \"${BUILT_PRODUCTS_DIR}/../${CONFIGURATION}-iphonesimulator/libMintKit-Simulator.a\" \\\n\"${BUILT_PRODUCTS_DIR}/libMintKit-Device.a\" -output \\\n\"${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a\"\n\nrsync ${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a ${PROJECT_DIR}/../Release/MintKit/libMintKit.a\nrsync -r ${BUILT_PRODUCTS_DIR}/../${CONFIGURATION}-iphonesimulator/headers ${PROJECT_DIR}/../Release/MintKit/";
shellScript = "rm -rf ${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a\n\nlipo -create \"${BUILT_PRODUCTS_DIR}/../${CONFIGURATION}-iphonesimulator/libMintKit-Simulator.a\" \\\n\"${BUILT_PRODUCTS_DIR}/libMintKit-Device.a\" -output \\\n\"${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a\"\n\nrsync ${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a ${PROJECT_DIR}/../Release/MintKit/libMintKit.a\nrsync -r --delete ${BUILT_PRODUCTS_DIR}/../${CONFIGURATION}-iphonesimulator/headers ${PROJECT_DIR}/../Release/MintKit/";
};
F791DAD017DE0B610092A474 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
Expand All @@ -620,7 +620,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "rm -rf ${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a\n\nlipo -create \"${BUILT_PRODUCTS_DIR}/../${CONFIGURATION}-iphonesimulator/libMintKit-Simulator.a\" \\\n\"${BUILT_PRODUCTS_DIR}/libMintKit-Device.a\" -output \\\n\"${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a\"\n\nrsync ${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a ${PROJECT_DIR}/../Sample/Lib/MintKit/libMintKit.a\nrsync -r ${BUILT_PRODUCTS_DIR}/../${CONFIGURATION}-iphonesimulator/headers ${PROJECT_DIR}/../Sample/Lib/MintKit/";
shellScript = "rm -rf ${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a\n\nlipo -create \"${BUILT_PRODUCTS_DIR}/../${CONFIGURATION}-iphonesimulator/libMintKit-Simulator.a\" \\\n\"${BUILT_PRODUCTS_DIR}/libMintKit-Device.a\" -output \\\n\"${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a\"\n\nrsync ${BUILT_PRODUCTS_DIR}/libMintKit-Aggregate.a ${PROJECT_DIR}/../Sample/Lib/MintKit/libMintKit.a\nrsync -r --delete ${BUILT_PRODUCTS_DIR}/../${CONFIGURATION}-iphonesimulator/headers ${PROJECT_DIR}/../Sample/Lib/MintKit/";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
1 change: 1 addition & 0 deletions mintKit/mintKit/DateTimeSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@
+ (DateTimeSet*)makeDateTimeSetYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day;
+ (DateTimeSet*)makeDateTimeSetHour:(NSInteger)hour minute:(NSInteger)minute second:(NSInteger)second;
+ (DateTimeSet*)makeDateTimeSetYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day hour:(NSInteger)hour minute:(NSInteger)minute second:(NSInteger)second;

@end
4 changes: 3 additions & 1 deletion mintKit/mintKit/DateTimeSet.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ + (DateTimeSet *)makeDateTimeSetYear:(NSInteger)year month:(NSInteger)month day:
dateTimeSet.minutes = minute;
dateTimeSet.seconds = second;

return dateTimeSet;}
return dateTimeSet;
}


@end
Loading

0 comments on commit 95f838f

Please sign in to comment.