Skip to content

Instantly share code, notes, and snippets.

View ifournight's full-sized avatar
👾
Alona!

Song Hui ifournight

👾
Alona!
View GitHub Profile
#import <Cocoa/Cocoa.h>
@interface GetPathsOperation : NSOperation
- (id)initWithRootURL:(NSURL *)url queue:(NSOperationQueue *)qq scanCount:(NSInteger)scanCount;
@end
@ifournight
ifournight / SDirectionPanGestureRecognizer.h
Last active December 16, 2015 07:49
SRevealSideController and company class.
#import <Foundation/Foundation.h>
#import <UIKit/UIGestureRecognizerSubclass.h>
typedef NS_ENUM(NSUInteger, SDirectionPanGestureRecognizerDirection) {
SDirectionPanGestureRecognizerDirectionHorizontal,
SDirectionPanGestureRecognizerDirectionVertical
};
// Subclass of UIPanGestureRecognizer that only enable one direction pan gesture.
// The intended direction should be set by the property direction.
@ifournight
ifournight / DirectionPanGestureRecognizer.h
Created April 16, 2013 03:24
DirectionPanGestureRecognizer From http://goo.gl/H65QC
#import <Foundation/Foundation.h>
#import <UIKit/UIGestureRecognizerSubclass.h>
typedef enum {
DirectionPangestureRecognizerVertical,
DirectionPanGestureRecognizerHorizontal
} DirectionPangestureRecognizerDirection;
@interface DirectionPanGestureRecognizer : UIPanGestureRecognizer {
BOOL _drag;
@ifournight
ifournight / STabControl.h
Last active December 16, 2015 02:09
SToolkitController and Company class.
//
// STabControl.h
// Xcode Reader
//
// Created by Song Hui 2013-4-15
// Copyright(C)Song Hui. All rights reserved.
#import <UIKit/UIKit.h>
@class STabControl;