Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
UIViewController+JKScrollingStatusBar
  • Loading branch information
Jakey committed Jun 14, 2016
1 parent 7bff93a commit 60b32dc
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 318 deletions.
12 changes: 0 additions & 12 deletions JKCategories-Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
A21CF1801B38F631006415E0 /* NSHTTPCookieStorageDemoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A21CF17E1B38F631006415E0 /* NSHTTPCookieStorageDemoViewController.m */; };
A21CF1811B38F631006415E0 /* NSHTTPCookieStorageDemoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A21CF17F1B38F631006415E0 /* NSHTTPCookieStorageDemoViewController.xib */; };
A21CF1841B38F65C006415E0 /* NSHTTPCookieStorage+JKFreezeDry.m in Sources */ = {isa = PBXBuildFile; fileRef = A21CF1831B38F65C006415E0 /* NSHTTPCookieStorage+JKFreezeDry.m */; };
A21CF1871B38F708006415E0 /* UINavigationBar+JKCustomHeight.m in Sources */ = {isa = PBXBuildFile; fileRef = A21CF1861B38F708006415E0 /* UINavigationBar+JKCustomHeight.m */; };
A21CF18A1B38F7C4006415E0 /* MKMapView+JKMoveLogo.m in Sources */ = {isa = PBXBuildFile; fileRef = A21CF1891B38F7C4006415E0 /* MKMapView+JKMoveLogo.m */; };
A21F34BD1B0F221400D73A91 /* UINavigationItem+JKLock.m in Sources */ = {isa = PBXBuildFile; fileRef = A21F34BC1B0F221400D73A91 /* UINavigationItem+JKLock.m */; };
A21F34C11B0F229700D73A91 /* UIScreen+JKFrame.m in Sources */ = {isa = PBXBuildFile; fileRef = A21F34C01B0F229700D73A91 /* UIScreen+JKFrame.m */; };
Expand Down Expand Up @@ -287,7 +286,6 @@
A2958D001B358F0200D7AA0F /* UIApplication+JKPermissions.m in Sources */ = {isa = PBXBuildFile; fileRef = A2958CFF1B358F0200D7AA0F /* UIApplication+JKPermissions.m */; };
A2958D061B35906E00D7AA0F /* UIApplication+JKApplicationSize.m in Sources */ = {isa = PBXBuildFile; fileRef = A2958D051B35906E00D7AA0F /* UIApplication+JKApplicationSize.m */; };
A2958D0C1B35937000D7AA0F /* UIResponder+JKFirstResponder.m in Sources */ = {isa = PBXBuildFile; fileRef = A2958D0B1B35937000D7AA0F /* UIResponder+JKFirstResponder.m */; };
A2958D0F1B35944000D7AA0F /* UIViewController+JKScrollingStatusBar.m in Sources */ = {isa = PBXBuildFile; fileRef = A2958D0E1B35944000D7AA0F /* UIViewController+JKScrollingStatusBar.m */; };
A2958D121B35958000D7AA0F /* UITextField+JKShake.m in Sources */ = {isa = PBXBuildFile; fileRef = A2958D111B35958000D7AA0F /* UITextField+JKShake.m */; };
A2958D151B35961600D7AA0F /* UIView+JKDraggable.m in Sources */ = {isa = PBXBuildFile; fileRef = A2958D141B35961600D7AA0F /* UIView+JKDraggable.m */; };
A2958D1B1B35975A00D7AA0F /* UITextField+JKHistory.m in Sources */ = {isa = PBXBuildFile; fileRef = A2958D1A1B35975A00D7AA0F /* UITextField+JKHistory.m */; };
Expand Down Expand Up @@ -491,8 +489,6 @@
A21CF17F1B38F631006415E0 /* NSHTTPCookieStorageDemoViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = NSHTTPCookieStorageDemoViewController.xib; sourceTree = "<group>"; };
A21CF1821B38F65C006415E0 /* NSHTTPCookieStorage+JKFreezeDry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSHTTPCookieStorage+JKFreezeDry.h"; sourceTree = "<group>"; };
A21CF1831B38F65C006415E0 /* NSHTTPCookieStorage+JKFreezeDry.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSHTTPCookieStorage+JKFreezeDry.m"; sourceTree = "<group>"; };
A21CF1851B38F708006415E0 /* UINavigationBar+JKCustomHeight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UINavigationBar+JKCustomHeight.h"; sourceTree = "<group>"; };
A21CF1861B38F708006415E0 /* UINavigationBar+JKCustomHeight.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UINavigationBar+JKCustomHeight.m"; sourceTree = "<group>"; };
A21CF1881B38F7C4006415E0 /* MKMapView+JKMoveLogo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MKMapView+JKMoveLogo.h"; sourceTree = "<group>"; };
A21CF1891B38F7C4006415E0 /* MKMapView+JKMoveLogo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "MKMapView+JKMoveLogo.m"; sourceTree = "<group>"; };
A21F34BB1B0F221400D73A91 /* UINavigationItem+JKLock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UINavigationItem+JKLock.h"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -885,8 +881,6 @@
A2958D051B35906E00D7AA0F /* UIApplication+JKApplicationSize.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIApplication+JKApplicationSize.m"; sourceTree = "<group>"; };
A2958D0A1B35937000D7AA0F /* UIResponder+JKFirstResponder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIResponder+JKFirstResponder.h"; sourceTree = "<group>"; };
A2958D0B1B35937000D7AA0F /* UIResponder+JKFirstResponder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIResponder+JKFirstResponder.m"; sourceTree = "<group>"; };
A2958D0D1B35944000D7AA0F /* UIViewController+JKScrollingStatusBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIViewController+JKScrollingStatusBar.h"; sourceTree = "<group>"; };
A2958D0E1B35944000D7AA0F /* UIViewController+JKScrollingStatusBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIViewController+JKScrollingStatusBar.m"; sourceTree = "<group>"; };
A2958D101B35958000D7AA0F /* UITextField+JKShake.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UITextField+JKShake.h"; sourceTree = "<group>"; };
A2958D111B35958000D7AA0F /* UITextField+JKShake.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UITextField+JKShake.m"; sourceTree = "<group>"; };
A2958D131B35961600D7AA0F /* UIView+JKDraggable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+JKDraggable.h"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2126,8 +2120,6 @@
children = (
A284C1131AEBBF8000D90ED5 /* UINavigationBar+JKAwesome.h */,
A284C1141AEBBF8000D90ED5 /* UINavigationBar+JKAwesome.m */,
A21CF1851B38F708006415E0 /* UINavigationBar+JKCustomHeight.h */,
A21CF1861B38F708006415E0 /* UINavigationBar+JKCustomHeight.m */,
);
path = UINavigationBar;
sourceTree = "<group>";
Expand Down Expand Up @@ -2474,8 +2466,6 @@
A2B995D21B46797500011613 /* UIViewController+JKBlockSegue.m */,
A23C10841B3D39AD00FA34AA /* UIViewController+JKBackButtonTouched.h */,
A23C10851B3D39AD00FA34AA /* UIViewController+JKBackButtonTouched.m */,
A2958D0D1B35944000D7AA0F /* UIViewController+JKScrollingStatusBar.h */,
A2958D0E1B35944000D7AA0F /* UIViewController+JKScrollingStatusBar.m */,
A28BE3201A3E9FDC005C4AC6 /* UIViewController+JKRecursiveDescription.h */,
A28BE3211A3E9FDC005C4AC6 /* UIViewController+JKRecursiveDescription.m */,
A28BE3681A3EB043005C4AC6 /* UIViewController+JKVisible.h */,
Expand Down Expand Up @@ -3231,7 +3221,6 @@
A221042E1CFADC9600CE6547 /* UIViewController+DDPopUpViewController.m in Sources */,
A2C97D851C96576E00614B98 /* UICollectionViewDemoViewController.m in Sources */,
A281FBEF1AC8139D009040DA /* UITableViewCellDemoViewController.m in Sources */,
A21CF1871B38F708006415E0 /* UINavigationBar+JKCustomHeight.m in Sources */,
A2FD5B471A52636100555EA2 /* UIResponder+JKChain.m in Sources */,
A221042F1CFADC9600CE6547 /* UIViewController+MJPopupViewController.m in Sources */,
A2958CC81B35804600D7AA0F /* CAShapeLayer+JKUIBezierPath.m in Sources */,
Expand Down Expand Up @@ -3320,7 +3309,6 @@
A280E53A1A52405A00E6ACA2 /* UIScrollView+JKAddition.m in Sources */,
A284C10B1AEBBB8600D90ED5 /* UIBezierPath+JKSymbol.m in Sources */,
A2EA48F21B34FBB400A4B66F /* CALayer+JKBorderColor.m in Sources */,
A2958D0F1B35944000D7AA0F /* UIViewController+JKScrollingStatusBar.m in Sources */,
A28BE32D1A3E9FDC005C4AC6 /* UIImage+JKColor.m in Sources */,
A2AF02A41A74BACB003FEC8D /* NSDictionary+JKSafeAccess.m in Sources */,
A2FD0CBE1AB1618D00EDEA4C /* UIWindow+JKHierarchy.m in Sources */,
Expand Down
38 changes: 37 additions & 1 deletion JKCategories/Foundation/NSData/NSData+JKzlib.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import Foundation;

#import <zlib.h>

#import <dlfcn.h>
#import "NSData+JKzlib.h"

static const uInt CHUNK_SIZE = 65536;
Expand All @@ -10,6 +10,15 @@
NSString *const JKZlibErrorInfoKey = @"zerror";

@implementation NSData (JKzlib)
static void *jk_zlibOpen()
{
static void *libz;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
libz = dlopen("/usr/lib/libz.dylib", RTLD_LAZY);
});
return libz;
}

- (NSData *)jk_dataByInflatingWithError:(NSError *__autoreleasing *)error
{
Expand Down Expand Up @@ -37,6 +46,20 @@ - (NSData *)jk_dataByDeflatingWithError:(NSError *__autoreleasing *)error
- (BOOL)jk_inflate:(void (^)(NSData *))processBlock
error:(NSError *__autoreleasing *)error
{
void *libz = jk_zlibOpen();
// int (*deflateInit2_)(z_streamp, int, int, int, int, int, const char *, int) =
// (int (*)(z_streamp, int, int, int, int, int, const char *, int))dlsym(libz, "deflateInit2_");
// int (*deflateInit_)(z_streamp, int, const char *, int) =
// (int (*)(z_streamp, int, const char *, int))dlsym(libz, "deflateInit_");

int (*inflateInit_)(z_streamp,const char *, int) =
(int (*)(z_streamp, const char *, int))dlsym(libz, "inflateInit_");
int (*inflate)(z_streamp, int) = (int (*)(z_streamp, int))dlsym(libz, "inflate");
// int (*deflate)(z_streamp, int) = (int (*)(z_streamp, int))dlsym(libz, "deflate");
// int (*deflateEnd)(z_streamp) = (int (*)(z_streamp))dlsym(libz, "deflateEnd");
int (*inflateEnd)(z_streamp) = (int (*)(z_streamp))dlsym(libz, "inflateEnd");


z_stream stream;
stream.zalloc = Z_NULL;
stream.zfree = Z_NULL;
Expand Down Expand Up @@ -90,12 +113,25 @@ - (BOOL)jk_inflate:(void (^)(NSData *))processBlock
- (BOOL)jk_deflate:(void (^)(NSData *))processBlock
error:(NSError *__autoreleasing *)error
{
void *libz = jk_zlibOpen();
// int (*deflateInit2_)(z_streamp, int, int, int, int, int, const char *, int) =
// (int (*)(z_streamp, int, int, int, int, int, const char *, int))dlsym(libz, "deflateInit2_");
int (*deflateInit_)(z_streamp, int, const char *, int) =
(int (*)(z_streamp, int, const char *, int))dlsym(libz, "deflateInit_");

// int (*inflate)(z_streamp, int) = (int (*)(z_streamp, int))dlsym(libz, "inflate");
int (*deflate)(z_streamp, int) = (int (*)(z_streamp, int))dlsym(libz, "deflate");
int (*deflateEnd)(z_streamp) = (int (*)(z_streamp))dlsym(libz, "deflateEnd");
// int (*inflateEnd)(z_streamp) = (int (*)(z_streamp))dlsym(libz, "inflateEnd");


z_stream stream;
stream.zalloc = Z_NULL;
stream.zfree = Z_NULL;
stream.opaque = Z_NULL;

int ret = deflateInit(&stream, 9);

if (ret != Z_OK) {
if (error) *error = [NSError errorWithDomain:JKZlibErrorDomain
code:JKZlibErrorCodeDeflationError
Expand Down
3 changes: 3 additions & 0 deletions JKCategories/Foundation/NSObject/NSObject+JKAutoCoding.m
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,14 @@ - (void)jk_setWithCoder:(NSCoder *)aDecoder
}
}
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-designated-initializers"
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
[self jk_setWithCoder:aDecoder];
return self;
}
#pragma clang diagnostic pop
- (void)encodeWithCoder:(NSCoder *)aCoder
{
for (NSString *key in [self jk_codableProperties])
Expand Down
2 changes: 0 additions & 2 deletions JKCategories/JKUIKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
#import "UILabel+JKAutoSize.h"
#import "UILabel+JKSuggestSize.h"
#import "UINavigationBar+JKAwesome.h"
#import "UINavigationBar+JKCustomHeight.h"
#import "UINavigationController+JKKeyboardFix.h"
#import "UINavigationController+JKStackManager.h"
#import "UINavigationController+JKTransitions.h"
Expand Down Expand Up @@ -111,7 +110,6 @@
#import "UIViewController+JKBackButtonTouched.h"
#import "UIViewController+JKBlockSegue.h"
#import "UIViewController+JKRecursiveDescription.h"
#import "UIViewController+JKScrollingStatusBar.h"
#import "UIViewController+JKStoreKit.h"
#import "UIViewController+JKVisible.h"
#import "UIWebView+JKBlocks.h"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 60b32dc

Please sign in to comment.