repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
penman/numbers | src/NumbersStation.h | #import <Foundation/Foundation.h>
@interface NumbersStation : NSObject
@property (nonatomic, readonly) NSString *configurationFilePath;
@property (nonatomic, readonly) NSArray *tone;
@property (nonatomic, readonly) NSString *message;
@property (nonatomic, readonly) NSDictionary *sounds;
- (instancetype)initWithConfi... |
zhangfurun/TT | TTFrameWork/View/TTAlertView/FRAlertView/FRAlertView.h | //
// FRAlertView.h
// ComicPhoto
//
// Created by 张福润 on 16/9/9.
// Copyright © 2016年 com.ifenghui. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^AlertCancelBlock)();
typedef void(^AlertConfirmBlock)();
@interface FRAlertView : UIView
+ (void)alertViewWithMessage:(NSString *)message
... |
zhangfurun/TT | TTFrameWork/Common/Category/UIImage+TTResize.h | <filename>TTFrameWork/Common/Category/UIImage+TTResize.h
//
// UIImage+TTResize.h
// TT
//
// Created by 张福润 on 2017/12/18.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (TTResize)
/**
* 返回一张自由拉伸的图片(默认拉伸中心区域)
*/
+ (UIImage *)resizedImageWithName:(NSString *)name;... |
zhangfurun/TT | TTFrameWork/View/TableViewAndCollection/TTCollectionView/TTCollectionViewBaseCell.h | <reponame>zhangfurun/TT<filename>TTFrameWork/View/TableViewAndCollection/TTCollectionView/TTCollectionViewBaseCell.h<gh_stars>10-100
//
// TTCollectionViewBaseCell.h
// TT
//
// Created by 张福润 on 2017/3/22.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTCollectionViewBaseCe... |
zhangfurun/TT | TTFrameWork/NetWork/TTBaseRequest.h | //
// TTBaseRequest.h
// TT
//
// Created by 张福润 on 2017/3/11.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TTBaseReqCommon.h"
@class UIImage;
@class TTBaseRequest;
extern const NSInteger REQUEST_DEFAULT_ERROR_CODE;
extern NSString * const Key_Model;
@interface T... |
zhangfurun/TT | TTFrameWork/NetWork/TTBaseReqCommon.h | <filename>TTFrameWork/NetWork/TTBaseReqCommon.h
//
// TTBaseReqCommon.h
// TT
//
// Created by zhangfurun on 2017/7/24.
// Copyright © 2017年 张福润. All rights reserved.
//
#ifndef TTBaseReqCommon_h
#define TTBaseReqCommon_h
@class TTBaseRequest;
typedef NS_ENUM(NSUInteger, TTRequestMethod) {
TTRequestMethodGet... |
zhangfurun/TT | TTFrameWork/View/TTScrollView/TTContentScrollView.h | //
// TTContentScrollView.h
// TT
//
// Created by 张福润 on 2017/3/23.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@class TTContentScrollView;
@protocol TTContentScrollViewDelegate <NSObject>
- (void)TTcontentScrollView:(TTContentScrollView *)TTcontentView didScrollToView:(UIView *)vi... |
zhangfurun/TT | TTFrameWork/NetWork/TTRequest.h | <reponame>zhangfurun/TT
//
// TTRequest.h
// TT
//
// Created by 张福润 on 2017/3/11.
// Copyright © 2017年 张福润. All rights reserved.
//
#import "TTBaseRequest.h"
/**
这个TTRequest数据请求,是针对项目中的数据请求做出的实际的操作类
在实际开发中,我们可以继承TTBaseRequest进行操作,同时,重写对外接口,我们可以尽可能的完善项目的数据请求
*/
extern NSString * const FORMAL_SERVER_URL;
exter... |
zhangfurun/TT | TTFrameWork/Common/Libs/PrintToolsChinese/NSDictionary+PrintChinese.h |
#import <Foundation/Foundation.h>
@interface NSDictionary (PrintChinese)
- (NSString *)descriptionWithLocale:(id)locale;
@end
|
zhangfurun/TT | TTFrameWork/Common/Tools/TTLogManager.h | //
// TTLogManager.h
// TT
//
// Created by 张福润 on 2017/3/11.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
static NSString * const kLogStatus = @"kLogStatus";
@interface TTLogManager : NSObject
+ (void)setLogStatus:(BOOL)logStatus;
+ (BOOL)logStatus;
@end
|
zhangfurun/TT | TTFrameWork/TTShare/ShareModel/TTAuthInfo.h | //
// TTAuthInfo.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import "TTBaseModel.h"
typedef enum : NSUInteger {
ShareType_None = 0,
ShareType_WeChat = 1,
ShareType_QQ = 2,
ShareType_Sina = 3,
ShareType_QZone,
ShareType_WeChatTimeline,
S... |
zhangfurun/TT | TTFrameWork/Common/Category/UIImage+TTImageMask.h | //
// UIImage+TTImageMask.h
// TT
//
// Created by 张福润 on 2017/12/18.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (TTImageMask)
/**
给图片添加信息,类似的新浪微博的图片的作者名称
*/
+ (UIImage *)imageAddTitleWithSubtitle:(NSString *)title
attributes:(NSDict... |
zhangfurun/TT | TTFrameWork/Model/TTBaseModel.h | <reponame>zhangfurun/TT
//
// TTBaseModel.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TTBaseModel : NSObject
/**
将Model转化为字典
*/
- (NSDictionary *)tt_toKeyValue;
/**
替换属性名称
e.g.:@{@"baseID" : @"id"};
*/
+ (NSDictio... |
zhangfurun/TT | TTFrameWork/Common/Tools/AllowMobileNetManager.h | //
// AllowMobileNetManager.h
// TT
//
// Created by 张福润 on 2017/4/6.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
@class AllowMobileNetManager;
@interface AllowMobileNetManager : NSObject
@property (assign, nonatomic, getter=isAllowDownload) BOOL allowDownload;
+ (AllowMob... |
zhangfurun/TT | TTFrameWork/TTHUDMessage/TTHUDMessage.h | //
// TTHUDMessage.h
// TT
//
// Created by 张福润 on 2017/3/3.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, HUDShowTextType) {
HUDShowTextTypeNone,
HUDShowTextTypeText,
HUDShowTextTypeDetailsText,
HUDShowTextT... |
zhangfurun/TT | TTFrameWork/TTOtherPayManager/WeChatPayTool/WeChatPayManagerHeader.h | <filename>TTFrameWork/TTOtherPayManager/WeChatPayTool/WeChatPayManagerHeader.h
//
// WeChatPayManagerHeader.h
// StoryShip
//
// Created by 张福润 on 2017/4/24.
// Copyright © 2017年 ifenghui. All rights reserved.
//
#ifndef WeChatPayManagerHeader_h
#define WeChatPayManagerHeader_h
#import "WXApi.h"
#import "WeChatS... |
zhangfurun/TT | TTFrameWork/Common/Libs/NetWorkReachability/NetWorkReachability.h | //
// NetWorkReachability.h
// ComicPhoto
//
// Created by 张福润 on 2016/11/10.
// Copyright © 2016年 com.ifenghui. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, NetWorkStatus) {
NetWorkStatusNotReachable = 0,
NetWorkStatusUnknown = 1,
NetWorkStatusWWAN2G = 2,
... |
zhangfurun/TT | TTFrameWork/View/TableViewAndCollection/Footer/TTMoreFooterView.h | //
// TTMoreFooterView.h
// TT
//
// Created by 张福润 on 2017/3/22.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TTConst.h"
@protocol TTMoreFooterViewDelegate <NSObject>
- (void)loadMore;
@end
@interface TTMoreFooterView : UIView
@property (nonatomic, weak) id<TTMoreFooterVie... |
zhangfurun/TT | TTFrameWork/Common/Libs/SMS_SDK/TTSMSManager.h | //
// TTSMSManager.h
// TT
//
// Created by 张福润 on 2017/3/23.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef void(^SMSResultBlock)(NSError *error);
extern NSString * const GET_VERIFICATION_CODE_ERROOR_KEY;
extern NSString * const COMMIT_VERIFICATION_CODE_ERROR_KEY;
... |
zhangfurun/TT | TTFrameWork/Common/Libs/CustomPopAnimation/PopAnimationView.h | <filename>TTFrameWork/Common/Libs/CustomPopAnimation/PopAnimationView.h<gh_stars>10-100
//
// PopAnimationView.h
// StoryShip
//
// Created by 张福润 on 2017/1/22.
// Copyright © 2017年 ifenghui. All rights reserved.
//
#import <UIKit/UIKit.h>
@class UIViewController;
@interface PopAnimationView : UIView
- (void)loa... |
zhangfurun/TT | TTFrameWork/View/TTTextView/TTTextView.h | //
// TTTextView.h
// TT
//
// Created by 张福润 on 2017/3/23.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTTextView : UITextView
@property (copy, nonatomic) NSString *placeHolerText;
@property (strong, nonatomic) UIColor *placeHolerTextColor;
@end
|
zhangfurun/TT | TTFrameWork/View/TTScrollView/TTTopScrollView.h | <filename>TTFrameWork/View/TTScrollView/TTTopScrollView.h
//
// TTTopScrollView.h
// TT
//
// Created by 张福润 on 2017/3/23.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTTopScrollView : UIScrollView<UIScrollViewDelegate>
@property (strong, nonatomic) NSArray *headerNameArr... |
zhangfurun/TT | TTFrameWork/Common/Tools/TTTools.h | <reponame>zhangfurun/TT
//
// TTTools.h
// TT
//
// Created by 张福润 on 2017/4/6.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface TTTools : NSObject
/**
去除字符串首尾空格换行
@param str 处理的字符串
*/
+ (NSString *)trimmedString:(NSString *)str;
/**
计算... |
zhangfurun/TT | TTFrameWork/View/TableViewAndCollection/TTTableView/TTTableViewBaseCell.h | <filename>TTFrameWork/View/TableViewAndCollection/TTTableView/TTTableViewBaseCell.h
//
// TTTableViewBaseCell.h
// TT
//
// Created by 张福润 on 2017/3/22.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTTableViewBaseCell : UITableViewCell
@property (strong, nonatomic) NSIndexP... |
zhangfurun/TT | TTFrameWork/View/TTAlertView/FRAlertView/AlertViewRecorder.h | //
// AlertViewRecorder.h
// StoryShip
//
// Created by 张福润 on 2017/3/7.
// Copyright © 2017年 ifenghui. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface AlertViewRecorder : NSObject
@property (nonatomic, strong)NSMutableArray * alertViewArray;
+ (AlertViewRecorder *)shareAlertViewRecorder;
@e... |
zhangfurun/TT | TTFrameWork/Common/Libs/AliyunOSS/TTAliyunOSSManager.h | //
// TTAliyunOSSManager.h
// TT
//
// Created by 张福润 on 2017/3/23.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
@class OSSObjectModel;
#define COMMON_BLOCK progressBlock:(OSSMProgressUploadBlock)progressBlock completedBlock:(OSSMCompletedBlock)completedBlock
typedef void(... |
zhangfurun/TT | TTFrameWork/View/Carousel/CarouselManager.h | //
// CarouselManager.h
// StoryShip
//
// Created by 张福润 on 2017/3/10.
// Copyright © 2017年 ifenghui. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/**
具体的展示形式请参考iCarousel对应的Github的地址,选用相应的形式
*/
#import "iCarousel.h"
@interface CarouselManager : NSObject
/**
展示轮播效果的View... |
zhangfurun/TT | TTFrameWork/Common/Category/NSBundle+TTBundle.h | //
// NSBundle+TTBundle.h
// TT
//
// Created by 张福润 on 2017/2/27.
// Copyright © 2017年 张福润. All rights reserved.
//
// NSBoundle的信息设置可以点击项目->TARGETS->当前项目->General->Identity->Version or Build
#import <Foundation/Foundation.h>
@interface NSBundle (TTBundle)
/**
获取APP的Version信息(获取APP版本号)
*/
+ (NSString *)appVe... |
zhangfurun/TT | TTFrameWork/Common/Tools/TTKit.h | <reponame>zhangfurun/TT
//
// TTKit.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
@class TTShareUser;
@class TTAuthInfo;
@interface TTKit : NSObject
/**
沙盒中保存数据
@param obj 保存数据
@param key 保存数据的key
*/
+ (void)saveData:(id)obj ... |
zhangfurun/TT | TTFrameWork/TTOtherPayManager/AliPayTool/AliPayManagerHeader.h | <reponame>zhangfurun/TT
//
// AliPayManagerHeader.h
// StoryShip
//
// Created by 张福润 on 2017/4/24.
// Copyright © 2017年 ifenghui. All rights reserved.
//
#ifndef AliPayManagerHeader_h
#define AliPayManagerHeader_h
#pragma mark - AliSDK
#import <AlipaySDK/AlipaySDK.h>
#import "Order.h"
#import "APAuthV2Info.h"
... |
zhangfurun/TT | TTFrameWork/TTShare/ShareModel/ShareContentInfo.h | <reponame>zhangfurun/TT<filename>TTFrameWork/TTShare/ShareModel/ShareContentInfo.h
//
// ShareContentInfo.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TTAuthInfo.h"
typedef NS_ENUM(NSUInteger, ShareContentType) {
Share... |
zhangfurun/TT | TTFrameWork/Controller/TTBaseViewController.h | <filename>TTFrameWork/Controller/TTBaseViewController.h<gh_stars>10-100
//
// TTBaseViewController.h
// TT
//
// Created by 张福润 on 2017/4/6.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UINavigationController+TTFullscreenPopGesture.h"
typedef void(^DismissBlock)();
@interfa... |
zhangfurun/TT | TT/TestCell.h | //
// TestCell.h
// TT
//
// Created by 张福润 on 2017/3/22.
// Copyright © 2017年 张福润. All rights reserved.
//
#import "TTTableViewBaseCell.h"
@interface TestCell : TTTableViewBaseCell
@end
|
zhangfurun/TT | TTFrameWork/View/TTStarView/TTStarView.h | //
// TTStarView.h
// TT
//
// Created by 张福润 on 2017/3/23.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@class TTStarView;
@protocol TTStarRatingViewDelegate <NSObject>
@optional
-(void)starRatingView:(TTStarView *)view score:(float)score;
@end
@interface TTStarView : UIView
@pr... |
zhangfurun/TT | TTFrameWork/Common/Category/UIDevice+TTDevice.h | //
// UIDevice+TTDevice.h
// TT
//
// Created by 张福润 on 2017/2/27.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum : NSUInteger {
CurrentDeviceTypeNone, // 未知类型
CurrentDeviceTypeIPhone, // 手机
CurrentDeviceTypeIPad, // pad
... |
zhangfurun/TT | TTFrameWork/View/TTScrollView/TTScrollView.h | //
// TTScrollView.h
// TT
//
// Created by 张福润 on 2017/3/23.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTScrollView : UIScrollView
@end
|
zhangfurun/TT | TTFrameWork/Common/Category/UIWindow+TTWindow.h | //
// UIWindow+TTWindow.h
// TT
//
// Created by 张福润 on 2017/2/27.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIWindow (TTWindow)
/**
获取当前显示的ViewController
*/
+ (UIViewController *)getCurrentViewController;
/**
删除当前导航栏中的某个控制器(前提是,删除的控制器存在导航栏的内存栈中)
@param navigation... |
zhangfurun/TT | TTFrameWork/Common/Category/UIColor+TTHex.h | //
// UIColor+TTHex.h
// StoryShip
//
// Created by 张福润 on 2017/4/7.
// Copyright © 2017年 ifenghui. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
设置颜色通过NSString类型,从十六进制字符串获取颜色
PS:支持@“#123456”、 @“0X123456”、 @“123456”三种格式
*/
@interface UIColor (TTHex)
/**
通过十六进制字符串设置颜色
@param color Color的十六进制字符串
@... |
zhangfurun/TT | TTFrameWork/Common/Category/NSFileManager+TTFileManager.h | //
// NSFileManager+TTFileManager.h
// TT
//
// Created by 张福润 on 2017/2/27.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSFileManager (TTFileManager)
/**
判断是不是文件夹
@param path 判断对象的路径
*/
+ (BOOL)isDirectoryExist:(NSString *)path;
/**
判断文件夹是不是存在
@param pa... |
zhangfurun/TT | TTFrameWork/Common/Category/UINavigationController+TTFullscreenPopGesture.h | //
// UINavigationController+TTFullscreenPopGesture.h
// TT
//
// Created by 张福润 on 2017/2/27.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UINavigationController (TTFullscreenPopGesture)
/// The gesture recognizer that actually handles interactive pop.
@property (nonatomic... |
zhangfurun/TT | TTFrameWork/Common/Tools/AutoLayoutLabelView.h | //
// AutoLayoutLabelView.h
// TT
//
// Created by 张福润 on 2017/4/6.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
// 这个主要是一个View用于展示的标签
// 一般是用于搜索热词
// 每个Button针对屏幕情况进行自适应
typedef void (^BtnBlock)(NSInteger index);
@interface AutoLayoutLabelView : UIView
@property (strong, nonatomic)... |
zhangfurun/TT | TTFrameWork/TTShare/ShareDataSource/WeChatCenter/WXAuthRequest.h | <reponame>zhangfurun/TT
//
// WXAuthRequest.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import "TTBaseRequest.h"
@interface WXGetAccessTokenRequest : TTBaseRequest
//code
//appid
//secret
@end
@interface WXRefreshAccessTokenRequest : TTBaseRequest
//appid
//refre... |
zhangfurun/TT | TTFrameWork/Common/Category/UIImagePickerController+TTPadLandscape.h | //
// UIImagePickerController+TTPadLandscape.h
// TT
//
// Created by 张福润 on 2017/12/18.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImagePickerController (TTPadLandscape)
@end
|
zhangfurun/TT | TTFrameWork/TTOtherPayManager/AliPayTool/AliPaySignTool.h | //
// AliPaySignTool.h
// StoryShip
//
// Created by 张福润 on 2017/4/24.
// Copyright © 2017年 ifenghui. All rights reserved.
//
#import <Foundation/Foundation.h>
@class AliPayModel;
@interface AliPaySignTool : NSObject
+ (NSString *)doAlipayPay:(AliPayModel *)model;
@end
|
zhangfurun/TT | TTFrameWork/Common/Tools/CleanLocalCache.h | //
// CleanLocalCache.h
// TT
//
// Created by 张福润 on 2017/4/6.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CleanLocalCache : NSObject
+ (NSString *)getLoaclCacheSize;
+ (void)clean;
@end
|
zhangfurun/TT | TTFrameWork/Common/TTConst.h | <reponame>zhangfurun/TT
//
// TTConst.h
// TT
//
// Created by 张福润 on 2017/2/27.
// Copyright © 2017年 张福润. All rights reserved.
//
#ifndef TTConst_h
#define TTConst_h
typedef enum : NSUInteger {
RefreshViewStateNormal = 0,
RefreshViewStateWillLoad,
RefreshViewStateLoading
} RefreshViewState;
#define ... |
zhangfurun/TT | TTFrameWork/View/TTAlertView/FRAlertView/UIAlertView+MyAlertView.h | <reponame>zhangfurun/TT
//
// UIAlertView+MyAlertView.h
// StoryShip
//
// Created by 张福润 on 2017/3/7.
// Copyright © 2017年 ifenghui. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIAlertView (MyAlertView)
@end
|
zhangfurun/TT | TTFrameWork/TTShare/ShareDataSource/TencentCenter/TTTencentCenter.h | <reponame>zhangfurun/TT
//
// TTTencentCenter.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import "TTBaseShareCenter.h"
#import <TencentOpenAPI/TencentOAuth.h>
#import <TencentOpenAPI/QQApiInterface.h>
@interface TTTencentCenter : TTBaseShareCenter<TencentSessionD... |
zhangfurun/TT | TTFrameWork/View/TTAlertView/TTAlertView.h | <reponame>zhangfurun/TT
//
// TTAlertView.h
// TT
//
// Created by 张福润 on 2017/3/22.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
/*
该Alert是基于系统自带的UIAlertView进行的进一步封装
*/
typedef void(^AlertCancelBlock)();
typedef void(^AlertConfirmBlock)();
typedef void(^AlertCommonBlock)();
@inte... |
zhangfurun/TT | TTFrameWork/Common/Libs/CustomPopAnimation/PopView.h | <reponame>zhangfurun/TT
//
// PopView.h
// StoryShip
//
// Created by 张福润 on 2017/1/22.
// Copyright © 2017年 ifenghui. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PopView : UIView
@property (nonatomic, assign, getter=isCanTouchBgCancel) BOOL canTouchBgCancel;
- (UIControl *)backgroundControl;
- (vo... |
zhangfurun/TT | TTFrameWork/View/TableViewAndCollection/TTCollectionView/TTCollectionView.h | //
// TTCollectionView.h
// TT
//
// Created by 张福润 on 2017/3/22.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TTConst.h"
@class TTCollectionView;
@protocol TTCollectionViewDelegate <NSObject>
- (void)collectionViewRefresh:(TTCollectionView *)collectionView;
- (void)collecti... |
zhangfurun/TT | TTFrameWork/Common/Category/UIView+TTSuperView.h | //
// UIView+TTSuperView.h
// TT
//
// Created by 张福润 on 2017/2/27.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
#define WITH_ANIMATE withAnimate:(BOOL)animate;
#define FINISHED_BLOCK (void(^)(BOOL finished))completion
#define WITH_ANIMATE_CO... |
zhangfurun/TT | TTFrameWork/View/TableViewAndCollection/Header/TTRefreshHeaderView.h | //
// TTRefreshHeaderView.h
// TT
//
// Created by 张福润 on 2017/3/22.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TTConst.h"
@interface TTRefreshHeaderView : UIView
@property (nonatomic) RefreshViewState state;
- (void)scrollViewDidScroll:(UIScrollView *)scrollView;
@end
|
zhangfurun/TT | TTFrameWork/View/TTWebView/TTWebView.h | //
// TTWebView.h
// TT
//
// Created by 张福润 on 2017/3/23.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTWebView : UIWebView
@property (nonatomic, assign, getter=isAllowUserSelected) BOOL allowUserSelected;
/**
* 当设置scalesPageToFit为true时,以下两个属性不起作用
*/
@property (nonatom... |
zhangfurun/TT | TTFrameWork/Common/Tools/AppPurchaseManager.h | //
// AppPurchaseManager.h
// TT
//
// Created by 张福润 on 2017/4/6.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
@interface AppPurchaseManager : NSObject
/**
判断当前是不是正在支付
*/
@property (assign, nonatomic, getter=isPurchaseing) BOOL purchaseing;
... |
zhangfurun/TT | TTFrameWork/Common/Category/NSDate+TTDate.h | <filename>TTFrameWork/Common/Category/NSDate+TTDate.h
//
// NSDate+TTDate.h
// TT
//
// Created by 张福润 on 2017/2/27.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDate (TTDate)
#pragma mark - Base
/**
* NSString转NSDate
*
* @param dateString 日期字符串
*
* @ret... |
zhangfurun/TT | TTFrameWork/View/TableViewAndCollection/TTCollectionView/CustomLayout/SortLayout/TTReorderableCollectionViewFlowLayout.h | <reponame>zhangfurun/TT
//
// TTReorderableCollectionViewFlowLayout.h
// TT
//
// Created by 张福润 on 2017/3/23.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTReorderableCollectionViewFlowLayout : UICollectionViewFlowLayout <UIGestureRecognizerDelegate>
@property (assign, n... |
zhangfurun/TT | TTFrameWork/TTShare/ShareDataSource/SinaCenter/SinaAuthRequest.h | //
// SinaAuthRequest.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import "TTBaseRequest.h"
@interface SinaAuthRequest : TTBaseRequest
@end
|
zhangfurun/TT | TTFrameWork/TTShare/ShareModel/TTShareUser.h | //
// TTShareUser.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import "TTBaseModel.h"
typedef enum : NSUInteger {
GenderTypeMan,
GenderTypeWoman,
} GenderType;
@interface TTShareUser : TTBaseModel
@property (nonatomic, strong) NSString *userId;//OAuth -> o... |
zhangfurun/TT | TTFrameWork/Common/Tools/TTServerManager.h | <filename>TTFrameWork/Common/Tools/TTServerManager.h
//
// TTServerManager.h
// TT
//
// Created by zhangfurun on 2017/7/24.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TTBaseReqCommon.h"
extern NSString * const LOG_STATUS_KEY;
extern NSString * const REQ_SERVER_T... |
zhangfurun/TT | TTFrameWork/Common/Tools/TTBinaryData.h | <gh_stars>10-100
//
// TTBinaryData.h
// TT
//
// Created by 张福润 on 2017/3/11.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
// 有关二进制文件的处理
extern NSString * const MIMEType_TEXT;
extern NSString * const MIMEType_Plain;
extern NSString * const MIMEType_JPG;
extern NSString * c... |
zhangfurun/TT | TTFrameWork/TTShare/ShareDataSource/SinaCenter/TTSinaCenter.h | <filename>TTFrameWork/TTShare/ShareDataSource/SinaCenter/TTSinaCenter.h
//
// TTSinaCenter.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import "TTBaseShareCenter.h"
#import "WeiboSDK.h"
@interface TTSinaCenter : TTBaseShareCenter<WeiboSDKDelegate>
@property (nonat... |
zhangfurun/TT | TTFrameWork/TTOtherPayManager/TTPayManager.h | <filename>TTFrameWork/TTOtherPayManager/TTPayManager.h
//
// TTPayManager.h
// StoryShip
//
// Created by 张福润 on 2017/4/23.
// Copyright © 2017年 ifenghui. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TTBaseModel.h"
#define TTPAY_MANAGER [TTPayManager sharedManager]
@class WeChatPayModel;
... |
zhangfurun/TT | TTFrameWork/View/TTBottomBarView/TTBottomBarView.h | //
// TTBottomBarView.h
// TT
//
// Created by 张福润 on 2017/3/22.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
一个底部的View,一般用于底部的评论等等
建议:frame的设置为CGRectMake(0, KEY_WINDOW.height - 44, KEY_WINDOW.width, 44)
*/
@interface TTBottomBarView : UIView
- (void)showInWindow;
- (void)show... |
zhangfurun/TT | TTFrameWork/Common/Tools/TTAudioTool.h | //
// TTAudioTool.h
// TT
//
// Created by 张福润 on 2017/4/6.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef void(^ComplitionBlock)(BOOL success, NSString *msg);
@protocol TTAudioToolDelegate <NSObject>
@optional
- (void)audioToolProgress:(float)progress currentTime:(NS... |
zhangfurun/TT | TTFrameWork/Common/Category/NSString+TTString.h | <gh_stars>10-100
//
// NSString+TTString.h
// TT
//
// Created by 张福润 on 2017/2/27.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (TTString)
/**
字符串的判空
@param str 判断的字符串
*/
+ (BOOL)isNilOrEmpty:(NSString *)str;
/**
字符串的MD5加密
*/
- (NSString *)md5Str;... |
zhangfurun/TT | TTFrameWork/View/TableViewAndCollection/TTTableView/TTTableView.h | <gh_stars>10-100
//
// TTTableView.h
// TT
//
// Created by 张福润 on 2017/3/22.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTTableView : UITableView
- (void)setRefreshHeaderViewBottom:(float)bottom;
- (void)didFinishedLoading;
- (void)setRefreshBlock:(void (^)())refreshBloc... |
zhangfurun/TT | TTFrameWork/Common/Category/NSTimer+TTTimer.h | <reponame>zhangfurun/TT
//
// NSTimer+TTTimer.h
// TT
//
// Created by 张福润 on 2017/12/18.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSTimer (TTTimer)
/*
* 暂停定时器
**/
- (void)pauseTimer;
/*
* 恢复定时器
**/
- (void)resumeTimer;
- (void)resumeTimerAfterTimeInterv... |
zhangfurun/TT | TTFrameWork/Controller/TTTabBarController.h | <gh_stars>10-100
//
// TTTabBarController.h
// TT
//
// Created by 张福润 on 2017/4/6.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TTTabBarController : UITabBarController
@end
@interface TTTabBarView : UIToolbar
/**
创建TTTabBarView
*/
+ (instancetype)createTabBarView;
/... |
zhangfurun/TT | TTFrameWork/NetWork/TTDwonloadRequest.h | <reponame>zhangfurun/TT<gh_stars>10-100
//
// TTDwonloadRequest.h
// TT
//
// Created by zhangfurun on 2017/7/24.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
extern NSString * const TTDownloadErrorReasonKey;
extern NSString * const TTDownloadDoDownlo... |
zhangfurun/TT | TTFrameWork/TTShare/TTBaseShareCenter.h | //
// TTBaseShareCenter.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TTShareUser.h"
#import "TTAuthInfo.h"
#import "ShareContentInfo.h"
#import "NSUserDefaults+TTUserDefaults.h"
typedef void(^ShareSuccessBlock)();
typedef... |
zhangfurun/TT | TTFrameWork/Common/Category/NSUserDefaults+TTUserDefaults.h | <filename>TTFrameWork/Common/Category/NSUserDefaults+TTUserDefaults.h<gh_stars>10-100
//
// NSUserDefaults+TTUserDefaults.h
// TT
//
// Created by 张福润 on 2017/2/27.
// Copyright © 2017年 张福润. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSUserDefaults (TTUserDefaults)
#pragma mark - Set Dat... |
zhangfurun/TT | TTFrameWork/View/TableViewAndCollection/TTCollectionView/CustomLayout/WaterFall/WaterfallDecorationReusableView.h | //
// WaterfallDecorationReusableView.h
// WaterfallCollectionView
//
// Created by <NAME> on 14.07.2013.
// Copyright (c) 2013 Event Info Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WaterfallDecorationReusableView : UICollectionReusableView
+ (CGSize)defaultSize;
@end
|
zhangfurun/TT | TTFrameWork/TTShare/ShareDataSource/WeChatCenter/TTWeChatCenter.h | //
// TTWeChatCenter.h
// TT
//
// Created by 张福润 on 2017/3/21.
// Copyright © 2017年 张福润. All rights reserved.
//
#import "TTBaseShareCenter.h"
#import "WXApi.h"
@interface TTWeChatCenter : TTBaseShareCenter <WXApiDelegate>
@property (nonatomic, assign, readonly, getter=isInstalledWeChat) BOOL installedWeChat;
... |
zhangfurun/TT | TTFrameWork/View/TableViewAndCollection/TTCollectionView/CustomLayout/WaterFall/WaterfallCollectionViewLayout.h | <filename>TTFrameWork/View/TableViewAndCollection/TTCollectionView/CustomLayout/WaterFall/WaterfallCollectionViewLayout.h
//
// WaterfallCollectionViewLayout.h
// WaterfallCollectionView
//
// Created by <NAME> on 12.07.2013.
// Copyright (c) 2013 Event Info Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
@c... |
ReactionMap/main_canost | arrange_ordered_atoms.c | // arrange_ordered_atoms.c
/****************************************************
レベル 1 の層は完全に順位が決定済み
それを利用したレベル 2 の層の順位付けをする関数
*****************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_ARRANGE_ORDERED_ATOM 1
extern ... |
ReactionMap/main_canost | apply_cast.c | // apply_cast.c
/****************************************************************
まだ, CASTコードがふられていないものに対してCASTコードをふり,
CASTコードを利用した順位付けをする ordering_one_castを呼び出す.
その順位付け終了後, CANOSTコードを生成するgenlnr_codeを呼び出す
****************************************************************/
#include <stdio.h>
#include <stdlib.h>
#inclu... |
ReactionMap/main_canost | calculate_dihedral_angle.c | <reponame>ReactionMap/main_canost<filename>calculate_dihedral_angle.c
// calculate_dihedral_angle.c 二面角を計算
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "main_canost.h"
// #define TEST_CALC_DIHEDRAL_ANGLE 1
extern int iatm;
extern struct atom *a1st;
double calculate_dihedral... |
ReactionMap/main_canost | fun_bfs.c | // fun_bfs.c 幅優先探索をする関数
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_BFS 1
#ifdef TEST_BFS
extern struct atom *va;
extern FILE *dummyfile;
#endif
extern int iatm;
extern int ibnd;
extern struct atom *a1st;
extern struct bond *b1st;
extern int new_atm;
extern i... |
ReactionMap/main_canost | confine_level.c | <gh_stars>1-10
// confine_level.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_CONFINE_LEVEL 1
#ifdef TEST_CONFINE_LEVEL
extern FILE *dummyfile;
#endif
extern int iatm;
extern struct atom *a1st;
extern int new_atm;
extern struct level *top;
extern struct level... |
ReactionMap/main_canost | distinguish_competitive_atoms2.c | // distinguish_competitive_atoms2.c
/*********************************************************************
レベル 1 の層の四つの原子の内, 二つの原子にそれぞれ異なる
順位が付いていて, 残り二つの原子には順位が付いていない.
順位の付いていない二つの原子のなす角(pivots[0] -- start -- pivots[1])
を利用して, その他の二つの原子及びその先の原子に順位を付ける関数
************************************************************... |
ReactionMap/main_canost | broken_line_pair.c | <filename>broken_line_pair.c<gh_stars>1-10
// broken_line_pair.c
/*********************************************************
start に接続している二つの原子は折れ線になっているので
この角度( altair -- start -- vega )を利用してレベル 2
の層の原子の順位を付ける
***********************************************************/
#include <stdio.h>
#include <stdl... |
ReactionMap/main_canost | tuple_cmp.c | <reponame>ReactionMap/main_canost
// tuple_cmp.c tupleが等しいかを判定
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
extern int iatm;
extern int new_atm;
extern struct atom *a1st;
int tuple_cmp( int *tuple_right, int *tuple_left ){
int i;
int flag;
flag=0;
for(i=0;i<TUPLE_SI... |
ReactionMap/main_canost | assign_codeNum.c | <filename>assign_codeNum.c
// assign_codeNum.c CANOSTコードのコード番号をふる関数
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
extern int iatm;
extern int ibnd;
extern struct atom *a1st;
extern struct bond *b1st;
extern int canost_codes;
// #define TEST_ASSIGN_CODENUM 1
#ifdef TEST_ASSIGN_... |
ReactionMap/main_canost | distinguish_competitive_atoms.c | // distinguish_competitive_atoms.c
/*******************************************************
基準となる原子を利用して, その他の順位の付いていない
原子(2,3個)の順位を決める関数
********************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_DIST_COMP_ONE 1
e... |
ReactionMap/main_canost | set_children.c | // set_children.c レベル 2 の原子の順位を固定する関数
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_SET_CHILDREN 1
extern struct atom *a1st;
extern struct level root;
extern struct level *top;
int set_children( int *comrade, int comNum, int *standard, int iso_type ){
#ifdef ... |
ReactionMap/main_canost | get_dihedral_angle.c | // get_dihedral_angle.c 二面角に基づくコードを計算
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
int get_dihedral_angle( int alpha, int beta, int gamma, int epsilon ){
int angle_code; // 二面角に基づくコード
double angle;
angle = calculate_dihedral_angle(alpha,beta,gamma,epsilon);
if( ( an... |
ReactionMap/main_canost | ordering_on_cast.c | <reponame>ReactionMap/main_canost
// ordering_on_cast.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_ORDER_ON_CAST 1
extern int iatm;
extern struct atom *a1st;
extern int new_atm;
extern struct level *top,*down;
extern struct level root;
extern struct level *r... |
ReactionMap/main_canost | prune_branch.c | // prune_branch.c 原子が環構造上の原子かどうかを判定する関数
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_PRUNE_BRANCH 1
#ifdef TEST_PRUNE_BRANCH
extern struct level *top;
extern FILE *dummyfile;
#endif
extern int iatm;
extern struct atom *a1st;
extern int new_atm;
extern int star... |
ReactionMap/main_canost | canonicalization.c | <filename>canonicalization.c
// canonicaliation.c 規範化のメインループ
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
//#define TEST_CANONICALIZATION 1
extern int iatm;
extern int new_atm;
extern struct atom *a1st;
extern struct level *top,*down;
extern int equive;
extern struct level *re... |
ReactionMap/main_canost | assign_cast_code.c | <reponame>ReactionMap/main_canost
// assign_cast_code CASTコードをふる関数
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_ASSIGN_CAST_CODE 1
extern int iatm;
extern struct atom *a1st;
extern int *cast_codes;
extern int *relative_parent;
int assign_cast_code( int epsilon... |
ReactionMap/main_canost | duplicate_levels.c | // duplicate_level.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
extern int start;
extern int iatm;
extern int new_atm;
extern struct atom *a1st;
extern int *interim_order;
extern struct level *top,*down;
extern struct level *caput,*pes;
int duplicate_levels( void ){
int i... |
ReactionMap/main_canost | identify_ancestors.c | // identify_ancestors.c
/***************************************************
alpha--beta--gamma--epsilon で決まる二面角に関して,
epsilonとその親を引数に与えたときgammaを返す関数
***************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_IDENTIFY_ANC... |
ReactionMap/main_canost | first_update_tuple.c | //first_update_tuple.c tupleを更新する関数
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_FIRST_UPDATE_TUPLE 1
extern int iatm;
extern int new_atm;
extern struct atom *a1st;
// chain : ひとつの層中の原子の配列
// length : 層中の原子の個数
int first_update_tuple( int *chain, int length, in... |
ReactionMap/main_canost | halogen_code.c | <gh_stars>1-10
// halogen_code.c aasings CANOST condes for halogens
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_HALOGEN_CODE 1
extern int iatm;
extern int ibnd;
extern struct atom *a1st;
extern struct bond *b1st;
int halogen_code(int halogen){
int ierror;
... |
ReactionMap/main_canost | intentional_ordering.c | <reponame>ReactionMap/main_canost<gh_stars>1-10
// intentional_ordering.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_INTENTIONAL_ORDER 1
extern int iatm;
extern struct atom *a1st;
extern int new_atm;
extern int equive;
extern struct level root;
extern struct... |
ReactionMap/main_canost | judge_sym_substruct.c | <filename>judge_sym_substruct.c
// judge_sym_substruct.c 規範化のメインループ
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_JUDGE_SYM 1
extern int iatm;
extern struct atom *a1st;
extern struct queue *head,*tail;
extern struct queue *front,*back;
extern FILE *fo;
extern in... |
ReactionMap/main_canost | recognition.c | <filename>recognition.c
// recognition
/* recongize a partial structure around each atom, and
assign a CANOST code to the atom */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_RECOG 1
extern int iatm;
extern int ibnd;
extern struct atom *a1st;
extern struct b... |
ReactionMap/main_canost | scan_children.c | <reponame>ReactionMap/main_canost
// scan_children.c レベル 2 の原子の順位を調べる関数
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
// #define TEST_SCAN_CHILDREN 1
extern int iatm;
extern struct atom *a1st;
extern int new_atm;
extern int *direct_parent;
extern int *relative_parent;
extern i... |
ReactionMap/main_canost | filiation.c | <filename>filiation.c
// filiation.c 各原子の親を出力
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
//#define TEST_FILIATION 1
extern int iatm;
extern struct atom *a1st;
extern FILE *fo;
extern struct level *top,*down;
int filiation(void){
int i;
int *comps;
struct bond *bp;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.