Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakey committed Oct 24, 2017
1 parent c5fe1d1 commit c449132
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion JKCategories/Foundation/NSData/NSData+JKPCM.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ _format.mSampleRate = 8000.0f;
* format wav data
*
* @param self raw audio data
* @param pcmFormat format of pcm
* @param PCMFormat format of pcm
*
* @return wav data
*/
Expand Down
2 changes: 1 addition & 1 deletion JKCategories/Foundation/NSData/NSData+JKPCM.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ @implementation NSData (JKPCM)
* format wav data
*
* @param self raw audio data
* @param pcmFormat format of pcm
* @param PCMFormat format of pcm
*
* @return wav data
*/
Expand Down
2 changes: 1 addition & 1 deletion JKCategories/Foundation/NSDate/NSDate+JKExtension.m
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ - (NSString *)jk_formatYMD {
}

+ (NSString *)jk_formatYMD:(NSDate *)date {
return [NSString stringWithFormat:@"%lu-%02lu-%02lu",[date jk_year],[date jk_month], [date jk_day]];
return [NSString stringWithFormat:@"%zd-%zd-%zd",[date jk_year],[date jk_month], [date jk_day]];
}

- (NSUInteger)jk_weeksOfMonth {
Expand Down
2 changes: 1 addition & 1 deletion JKCategories/Foundation/NSDate/NSDate+JKLunarCalendar.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ + (NSCalendar *)jk_chineseCalendar
{
static NSCalendar *jk_chineseCalendar_sharedCalendar = nil;
if (!jk_chineseCalendar_sharedCalendar)
jk_chineseCalendar_sharedCalendar =[NSCalendar calendarWithIdentifier:NSCalendarIdentifierChinese];;
jk_chineseCalendar_sharedCalendar =[[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierChinese];
return jk_chineseCalendar_sharedCalendar;
}
+ (NSString*)jk_currentMDDateString{
Expand Down
4 changes: 2 additions & 2 deletions JKCategories/UIKit/UIControl/UIControl+JKSound.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ @implementation UIControl (JKSound)
- (void)jk_setSoundNamed:(NSString *)name forControlEvent:(UIControlEvents)controlEvent
{
// Remove the old UI sound.
NSString *oldSoundKey = [NSString stringWithFormat:@"%lu", controlEvent];
NSString *oldSoundKey = [NSString stringWithFormat:@"%zd", controlEvent];
AVAudioPlayer *oldSound = [self jk_sounds][oldSoundKey];
[self removeTarget:oldSound action:@selector(play) forControlEvents:controlEvent];

Expand All @@ -34,7 +34,7 @@ - (void)jk_setSoundNamed:(NSString *)name forControlEvent:(UIControlEvents)contr

// Create and prepare the sound.
AVAudioPlayer *tapSound = [[AVAudioPlayer alloc] initWithContentsOfURL:soundFileURL error:&error];
NSString *controlEventKey = [NSString stringWithFormat:@"%lu", controlEvent];
NSString *controlEventKey = [NSString stringWithFormat:@"%zd", controlEvent];
NSMutableDictionary *sounds = [self jk_sounds];
[sounds setObject:tapSound forKey:controlEventKey];
[tapSound prepareToPlay];
Expand Down
2 changes: 1 addition & 1 deletion JKCategories/UIKit/UIFont/UIFont+JKCustomLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
@param extension Font filename extension (@"ttf" and @"otf" are supported)
@return `UIFont` object or `nil` on errors
*/
+ (UIFont *)jk_customFontOfSize:(CGFloat)size withName:(NSString *)name withExtension:(NSString *)extension;
+ (UIFont *)jk_customFontOfSize:(CGFloat)size withName:(NSString *)name withExtension:(NSString *)extension __attribute__ ((deprecated));

/**
Get `UIFont` object for the selected font file (*.ttf or *.otf files).
Expand Down
2 changes: 1 addition & 1 deletion JKCategories/UIKit/UIImage/UIImage+JKOrientation.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/**
* @brief 旋转图片
*
* @param degrees 弧度
* @param radians 弧度
*
* @return 旋转后图片
*/
Expand Down
2 changes: 1 addition & 1 deletion JKCategories/UIKit/UIImage/UIImage+JKVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
Create a UIImage from a PDF icon.
@param pdfFile The path of the PDF file.
@param tintColor The tint color to use for the icon. If nil no tint color will be used.
@param maxSize The maximum size the resulting image can be. The image will maintain it's aspect ratio and may not encumpas the full size.
@param size The maximum size the resulting image can be. The image will maintain it's aspect ratio and may not encumpas the full size.
@return The resulting image.
*/
+ (UIImage *)jk_imageWithPDFFile:(NSString *)pdfFile withTintColor:(UIColor *)tintColor forSize:(CGSize)size;
Expand Down
1 change: 0 additions & 1 deletion JKCategories/UIKit/UITextField/UITextField+JKHistory.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* load textfiled input history
*
* @param identify identity of this textfield
*
* @return the history of it's input
*/
Expand Down
2 changes: 1 addition & 1 deletion JKCategories/UIKit/UITextField/UITextField+JKShake.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ typedef NS_ENUM(NSInteger, JKShakedDirection) {
* @param times The number of shakes
* @param delta The width of the shake
* @param interval The duration of one shake
* @param direction of the shake
* @param shakeDirection of the shake
*/
- (void)jk_shake:(int)times withDelta:(CGFloat)delta speed:(NSTimeInterval)interval shakeDirection:(JKShakedDirection)shakeDirection;

Expand Down
3 changes: 1 addition & 2 deletions JKCategories/UIKit/UIView/UIView+JKDraggable.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
*/

/** The pan gestures that handles the view dragging
*
* @param panGesture The tint color of the blurred view. Set to nil to reset.
jk_panGesture The tint color of the blurred view. Set to nil to reset.
*/
@property (nonatomic) UIPanGestureRecognizer *jk_panGesture;

Expand Down
3 changes: 1 addition & 2 deletions JKCategories/UIKit/UIView/UIView+JKScreenshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
*
* @brief 截图一个view中所有视图 包括旋转缩放效果
*
* @param aView 一个view
* @param limitWidth 限制缩放的最大宽度 保持默认传0
* @param maxWidth 限制缩放的最大宽度 保持默认传0
*
* @return 截图
*/
Expand Down

0 comments on commit c449132

Please sign in to comment.