text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```objective-c
//
// WMTimeLineHeaderView.h
// WeChat
//
// Created by zhengwenming on 2017/9/18.
//
#import <UIKit/UIKit.h>
#import "JGGView.h"
#import "MessageInfoModel.h"
@interface WMTimeLineHeaderView : UITableViewHeaderFooterView
@property(nonatomic,retain)MessageInfoModel *model;
///**
// * block
// */
@p... | /content/code_sandbox/WeChat/ViewController/Discover发现-朋友圈/朋友圈-单个tableView/WMTimeLineHeaderView.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 100 |
```objective-c
//
// CommentInfoModel.m
// WeChat
//
// Created by zhengwenming on 2017/9/21.
//
#import "CommentInfoModel.h"
@implementation CommentInfoModel
-(instancetype)initWithDic:(NSDictionary *)dic{
self = [super init];
if (self) {
self.commentId = dic[@"commentId"];
self.c... | /content/code_sandbox/WeChat/ViewController/Discover发现-朋友圈/朋友圈-单个tableView/CommentInfoModel.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 629 |
```objective-c
//
// WMTimeLineViewController.m
// WeChat
//
// Created by zhengwenming on 2017/9/21.
//
#import "WMTimeLineViewController.h"
#import "WMTimeLineHeaderView.h"
#import "CommentCell.h"
#import "LikeUsersCell.h"
@interface WMTimeLineViewController ()<UITableViewDelegate,UITableViewDataSource>
@property... | /content/code_sandbox/WeChat/ViewController/Discover发现-朋友圈/朋友圈-单个tableView/WMTimeLineViewController.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,058 |
```objective-c
//
// TimeLineBaseViewController.m
// WeChat
//
// Created by zhengwenming on 2017/9/18.
//
#import "TimeLineBaseViewController.h"
@implementation TimeLineBaseViewController
-(NSMutableArray *)dataSource{
if (_dataSource==nil) {
_dataSource = [NSMutableArray array];
}
return _dat... | /content/code_sandbox/WeChat/ViewController/Discover发现-朋友圈/朋友圈基类/TimeLineBaseViewController.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 244 |
```objective-c
//
// FriendInfoModel.h
// WeChat
//
// Created by zhengwenming on 2017/9/21.
//
#import <Foundation/Foundation.h>
@interface FriendInfoModel : NSObject
@property(nonatomic,copy)NSString *imgName;
@property(nonatomic,copy)NSString *photo;
@property(nonatomic,copy)NSString *userName;
@property(non... | /content/code_sandbox/WeChat/ViewController/Discover发现-朋友圈/朋友圈基类/FriendInfoModel.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 102 |
```objective-c
//
// Layout.h
// WeChat
//
// Created by zhengwenming on 2017/9/22.
//
#import <Foundation/Foundation.h>
@interface Layout : NSObject
@property (nonatomic, assign) CGRect frameLayout;
@end
``` | /content/code_sandbox/WeChat/ViewController/Discover发现-朋友圈/朋友圈基类/Layout.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 54 |
```objective-c
//
// TimeLineBaseViewController.h
// WeChat
//
// Created by zhengwenming on 2017/9/18.
//
#import "BaseViewController.h"
#import "MessageInfoModel.h"
#import "WMPhotoBrowser.h"
@interface TimeLineBaseViewController : BaseViewController
@property(nonatomic,strong)NSMutableArray *dataSource;
#pragm... | /content/code_sandbox/WeChat/ViewController/Discover发现-朋友圈/朋友圈基类/TimeLineBaseViewController.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 84 |
```objective-c
//
// FriendInfoModel.m
// WeChat
//
// Created by zhengwenming on 2017/9/21.
//
#import "FriendInfoModel.h"
@implementation FriendInfoModel
-(instancetype)initWithDic:(NSDictionary *)dic{
self = [super init];
if (self) {
self.userId = dic[@"userId"];
self.userName = ... | /content/code_sandbox/WeChat/ViewController/Discover发现-朋友圈/朋友圈基类/FriendInfoModel.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 114 |
```objective-c
//
// Layout.m
// WeChat
//
// Created by zhengwenming on 2017/9/22.
//
#import "Layout.h"
@implementation Layout
@end
``` | /content/code_sandbox/WeChat/ViewController/Discover发现-朋友圈/朋友圈基类/Layout.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 41 |
```objective-c
//
// JGGView.h
// AIHealth
//
// Created by on 2017/7/17.
//
#import <UIKit/UIKit.h>
#define kGAP 10
/**
*
* @param index index
* @param dataSource
*/
typedef void (^TapBlcok)(NSInteger index,NSArray *dataSource);
@interface JGGView : UIView
/**
* dataSourceUIImageNSString(path_to_u... | /content/code_sandbox/WeChat/View/JGGView.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 129 |
```objective-c
//
// JGGView.m
// AIHealth
//
// Created by on 2017/7/17.
//
#import "JGGView.h"
#import "YYAnimatedImageView.h"
#import "UIImageView+WebCache.h"
@implementation JGGView
-(void)tapImageAction:(UITapGestureRecognizer *)tap{
UIImageView *tapView = (UIImageView *)tap.view;
if (self.tapBlock) {... | /content/code_sandbox/WeChat/View/JGGView.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 563 |
```objective-c
//
// CopyAbleLabel.m
// WeChat
//
// Created by zhengwenming on 2017/9/21.
//
#import "CopyAbleLabel.h"
@interface CopyAbleLabel ()
@property(nonatomic,strong)UIColor *originalColor;
@end
@implementation CopyAbleLabel
- (void)awakeFromNib {
[super awakeFromNib];
[self setUp];
}
- (instan... | /content/code_sandbox/WeChat/View/CopyAbleLabel.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 607 |
```objective-c
//
// CopyAbleLabel.h
// WeChat
//
// Created by zhengwenming on 2017/9/21.
//
#import <UIKit/UIKit.h>
@interface CopyAbleLabel : UILabel
@end
``` | /content/code_sandbox/WeChat/View/CopyAbleLabel.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 50 |
```objective-c
//
// UIBarButtonItem+addition.m
// TongXueBao
//
// Created by on 16/10/19.
//
@implementation BackView
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
self.backgroundColor = [UIColor clearColor];
}
return self;
}
-(void)layoutS... | /content/code_sandbox/WeChat/Category/UIBarButtonItem+addition.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,059 |
```objective-c
//
// UILabel+TapAction.h
// WeChat
//
// Created by zhengwenming on 2017/9/10.
//
#import <UIKit/UIKit.h>
@protocol TapActionDelegate <NSObject>
@optional
/**
* TapActionDelegate
*
* @param string
* @param range range
* @param index index
*/
- (void)tapReturnString:(NSString *)string
... | /content/code_sandbox/WeChat/Category/UILabel+TapAction.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 263 |
```objective-c
//
// NSString+Extension.m
// WeChat
//
// Created by zhengwenming on 2017/9/21.
//
#import "NSString+Extension.h"
@implementation NSString (Extension)
/**
*
*/
- (CGSize)boundingRectWithSize:(CGSize)size paragraphStyle:(NSMutableParagraphStyle *)paragraphStyle font:(UIFont*)font
{
NSMutableA... | /content/code_sandbox/WeChat/Category/NSString+Extension.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 756 |
```objective-c
//
// NSString+Extension.h
// WeChat
//
// Created by zhengwenming on 2017/9/21.
//
#import <Foundation/Foundation.h>
@interface NSString (Extension)
/**
*
*/
- (CGSize)boundingRectWithSize:(CGSize)size paragraphStyle:(NSMutableParagraphStyle *)paragraphStyle font:(UIFont*)font;
/**
*
*/
- (CG... | /content/code_sandbox/WeChat/Category/NSString+Extension.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 173 |
```objective-c
//
// UIBarButtonItem+addition.h
// TongXueBao
//
// Created by on 16/10/19.
//
#import <UIKit/UIKit.h>
@interface BackView:UIView
@property(nonatomic,strong)UIButton *btn;
@property(nonatomic,strong)UILabel *titleLabel;
@end
@interface UIBarButtonItem (addition)
+ (UIBarButtonItem *)itemWithT... | /content/code_sandbox/WeChat/Category/UIBarButtonItem+addition.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 173 |
```objective-c
//
// UILabel+TapAction.m
// WeChat
//
// Created by zhengwenming on 2017/9/10.
//
#import "UILabel+TapAction.h"
#import <objc/runtime.h>
#import <CoreText/CoreText.h>
#import <Foundation/Foundation.h>
@implementation AttributeModel
@end
@implementation UILabel (TapAction)
#pragma mark - Associate... | /content/code_sandbox/WeChat/Category/UILabel+TapAction.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 2,596 |
```objective-c
//
// WMCollectionViewFlowLayout.m
// WMPhotoBrowser
//
// Created by zhengwenming on 2018/6/11.
//
#import "WMCollectionViewFlowLayout.h"
@implementation WMCollectionViewFlowLayout
- (void)prepareLayout {
[super prepareLayout];
self.scrollDirection = UICollectionViewScrollDirectionHorizonta... | /content/code_sandbox/WeChat/ThirdLib/WMPhotoBrowser/WMCollectionViewFlowLayout.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 388 |
```objective-c
//
// WMPhotoBrowserCell.h
// WMPhotoBrowser
//
// Created by zhengwenming on 2018/1/2.
//
#import <UIKit/UIKit.h>
#import "UIView+WMFrame.h"
@interface WMPhotoBrowserCell : UICollectionViewCell
@property (nonatomic, copy)NSIndexPath *currentIndexPath;
@property (nonatomic, strong) UIImageView *imag... | /content/code_sandbox/WeChat/ThirdLib/WMPhotoBrowser/WMPhotoBrowserCell.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 124 |
```objective-c
//
// WMCollectionViewFlowLayout.h
// WMPhotoBrowser
//
// Created by zhengwenming on 2018/6/11.
//
#import <UIKit/UIKit.h>
@interface WMCollectionViewFlowLayout : UICollectionViewFlowLayout
@property (nonatomic, assign) CGFloat imgaeGap;
@end
``` | /content/code_sandbox/WeChat/ThirdLib/WMPhotoBrowser/WMCollectionViewFlowLayout.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 61 |
```objective-c
//
// WMPhotoBrowser.m
// WMPhotoBrowser
//
// Created by zhengwenming on 2018/1/2.
//
#import "WMPhotoBrowser.h"
#import "WMPhotoBrowserCell.h"
#import "MBProgressHUD+Show.h"
#import "WMCollectionViewFlowLayout.h"
#import "UIViewController+WMExtension.h"
@interface WMPhotoBrowser ()<UICollectionVie... | /content/code_sandbox/WeChat/ThirdLib/WMPhotoBrowser/WMPhotoBrowser.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,970 |
```objective-c
//
// WMPhotoBrowser.h
// WMPhotoBrowser
//
// Created by zhengwenming on 2018/1/2.
//
#import <UIKit/UIKit.h>
typedef void(^DeleteBlock)(NSMutableArray *dataSource,NSUInteger currentIndex,UICollectionView *collectionView);
typedef void(^DownLoadBlock)(NSMutableArray *dataSource,UIImage *image,NSErr... | /content/code_sandbox/WeChat/ThirdLib/WMPhotoBrowser/WMPhotoBrowser.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 182 |
```objective-c
//
// UIView+WMFrame.m
// WMPhotoBrowser
//
// Created by zhengwenming on 2018/1/5.
//
#import "UIView+WMFrame.h"
@implementation UIView (WMFrame)
- (void)setX:(CGFloat)x
{
CGRect frame = self.frame;
frame.origin.x = x;
self.frame = frame;
}
- (CGFloat)x
{
return self.frame.origin.x... | /content/code_sandbox/WeChat/ThirdLib/WMPhotoBrowser/Category/UIView+WMFrame.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 588 |
```objective-c
//
// WMPhotoBrowserCell.m
// WMPhotoBrowser
//
// Created by zhengwenming on 2018/1/2.
//
#import "WMPhotoBrowserCell.h"
#import "UIImageView+WebCache.h"
@interface WMPhotoBrowserCell ()<UIGestureRecognizerDelegate,UIScrollViewDelegate> {
CGFloat _aspectRatio;
}
@property (nonatomic, strong) UI... | /content/code_sandbox/WeChat/ThirdLib/WMPhotoBrowser/WMPhotoBrowserCell.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,670 |
```objective-c
//
// UIView+WMFrame.h
// WMPhotoBrowser
//
// Created by zhengwenming on 2018/1/5.
//
#import <UIKit/UIKit.h>
@interface UIView (WMFrame)
@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic) CGFloat left; ///< Shortcut for frame.origin.x.
@p... | /content/code_sandbox/WeChat/ThirdLib/WMPhotoBrowser/Category/UIView+WMFrame.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 222 |
```objective-c
//
// UIViewController+WMExtension.h
// WMPhotoBrowser
//
// Created by zhengwenming on 2018/6/14.
//
#import <UIKit/UIKit.h>
typedef void(^PopBlock)(UIBarButtonItem *backItem);
@interface UIViewController (WMExtension)
@property(nonatomic,copy)PopBlock popBlock;
@property (nonatomic, assign) BOOL i... | /content/code_sandbox/WeChat/ThirdLib/WMPhotoBrowser/Category/UIViewController+WMExtension.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 138 |
```objective-c
//
// UIViewController+WMExtension.m
// WMPhotoBrowser
//
// Created by zhengwenming on 2018/6/14.
//
#import "UIViewController+WMExtension.h"
#import <objc/runtime.h>
@implementation UIViewController (WMExtension)
-(PopBlock)popBlock{
return objc_getAssociatedObject(self, _cmd);
}
-(void)setPop... | /content/code_sandbox/WeChat/ThirdLib/WMPhotoBrowser/Category/UIViewController+WMExtension.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 947 |
```objective-c
// : path_to_url
// : path_to_url
// UIScrollView+Extension.m
// MJRefreshExample
//
// Created by MJ Lee on 14-5-28.
//
#import "UIScrollView+MJExtension.h"
#import <objc/runtime.h>
@implementation UIScrollView (MJExtension)
- (void)setMj_insetT:(CGFloat)mj_insetT
{
UIEdgeInsets inset = self... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/UIScrollView+MJExtension.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 526 |
```objective-c
// : path_to_url
// : path_to_url
// UIScrollView+MJRefresh.h
// MJRefreshExample
//
// Created by MJ Lee on 15/3/4.
// ScrollView
#import <UIKit/UIKit.h>
#import "MJRefreshConst.h"
@class MJRefreshHeader, MJRefreshFooter;
@interface UIScrollView (MJRefresh)
/** */
@property (strong, nonatomic)... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/UIScrollView+MJRefresh.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 178 |
```objective-c
// : path_to_url
// : path_to_url
// UIScrollView+Extension.h
// MJRefreshExample
//
// Created by MJ Lee on 14-5-28.
//
#import <UIKit/UIKit.h>
@interface UIScrollView (MJExtension)
@property (assign, nonatomic) CGFloat mj_insetT;
@property (assign, nonatomic) CGFloat mj_insetB;
@property (assign... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/UIScrollView+MJExtension.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 150 |
```objective-c
// : path_to_url
// : path_to_url
#import "UIScrollView+MJRefresh.h"
#import "UIScrollView+MJExtension.h"
#import "UIView+MJExtension.h"
#import "MJRefreshNormalHeader.h"
#import "MJRefreshGifHeader.h"
#import "MJRefreshBackNormalFooter.h"
#import "MJRefreshBackGifFooter.h"
#import "MJRefreshAutoNor... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/MJRefresh.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 94 |
```objective-c
// : path_to_url
// : path_to_url
// UIView+Extension.h
// MJRefreshExample
//
// Created by MJ Lee on 14-5-28.
//
#import <UIKit/UIKit.h>
@interface UIView (MJExtension)
@property (assign, nonatomic) CGFloat mj_x;
@property (assign, nonatomic) CGFloat mj_y;
@property (assign, nonatomic) CGFloat mj_... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/UIView+MJExtension.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 116 |
```objective-c
// : path_to_url
// : path_to_url
#import <UIKit/UIKit.h>
#import <objc/message.h>
//
#define MJWeakSelf __weak typeof(self) weakSelf = self;
//
#ifdef DEBUG
#define MJRefreshLog(...) NSLog(__VA_ARGS__)
#else
#define MJRefreshLog(...)
#endif
//
#define MJRefreshDeprecated(instead) NS_DEPRECATED(2... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/MJRefreshConst.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 536 |
```objective-c
// : path_to_url
// : path_to_url
// UIScrollView+MJRefresh.m
// MJRefreshExample
//
// Created by MJ Lee on 15/3/4.
//
#import "UIScrollView+MJRefresh.h"
#import "MJRefreshHeader.h"
#import "MJRefreshFooter.h"
#import <objc/runtime.h>
@implementation NSObject (MJRefresh)
+ (void)exchangeInstance... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/UIScrollView+MJRefresh.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 976 |
```objective-c
// : path_to_url
// : path_to_url
#import <UIKit/UIKit.h>
const CGFloat MJRefreshHeaderHeight = 54.0;
const CGFloat MJRefreshFooterHeight = 44.0;
const CGFloat MJRefreshFastAnimationDuration = 0.25;
const CGFloat MJRefreshSlowAnimationDuration = 0.4;
NSString *const MJRefreshKeyPathContentOffset = @"... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/MJRefreshConst.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 266 |
```objective-c
// : path_to_url
// : path_to_url
// UIView+Extension.m
// MJRefreshExample
//
// Created by MJ Lee on 14-5-28.
//
#import "UIView+MJExtension.h"
@implementation UIView (MJExtension)
- (void)setMj_x:(CGFloat)mj_x
{
CGRect frame = self.frame;
frame.origin.x = mj_x;
self.frame = frame;
}... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/UIView+MJExtension.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 368 |
```objective-c
//
// MJRefreshAutoFooter.m
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshAutoFooter.h"
@interface MJRefreshAutoFooter()
@end
@implementation MJRefreshAutoFooter
#pragma mark -
- (void)willMoveToSuperview:(UIView *)newSuperview
{
[super willMoveToSuperview:newSu... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Base/MJRefreshAutoFooter.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 819 |
```objective-c
// : path_to_url
// : path_to_url
// MJRefreshComponent.h
// MJRefreshExample
//
// Created by MJ Lee on 15/3/4.
//
#import <UIKit/UIKit.h>
#import "MJRefreshConst.h"
#import "UIView+MJExtension.h"
#import "UIScrollView+MJExtension.h"
#import "UIScrollView+MJRefresh.h"
/** */
typedef NS_ENUM(NS... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Base/MJRefreshComponent.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 541 |
```objective-c
// : path_to_url
// : path_to_url
// MJRefreshFooter.h
// MJRefreshExample
//
// Created by MJ Lee on 15/3/5.
//
#import "MJRefreshComponent.h"
@interface MJRefreshFooter : MJRefreshComponent
/** footer */
+ (instancetype)footerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlo... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Base/MJRefreshFooter.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 190 |
```objective-c
// : path_to_url
// : path_to_url
// MJRefreshFooter.m
// MJRefreshExample
//
// Created by MJ Lee on 15/3/5.
//
#import "MJRefreshFooter.h"
@interface MJRefreshFooter()
@end
@implementation MJRefreshFooter
#pragma mark -
+ (instancetype)footerWithRefreshingBlock:(MJRefreshComponentRefreshingBl... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Base/MJRefreshFooter.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 384 |
```objective-c
// : path_to_url
// : path_to_url
// MJRefreshHeader.h
// MJRefreshExample
//
// Created by MJ Lee on 15/3/4.
// :
#import "MJRefreshComponent.h"
@interface MJRefreshHeader : MJRefreshComponent
/** header */
+ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBl... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Base/MJRefreshHeader.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 160 |
```objective-c
//
// MJRefreshAutoFooter.h
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshFooter.h"
@interface MJRefreshAutoFooter : MJRefreshFooter
/** (YES) */
@property (assign, nonatomic, getter=isAutomaticallyRefresh) BOOL automaticallyRefresh;
/** (1.0) */
@property (assign, no... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Base/MJRefreshAutoFooter.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 121 |
```objective-c
//
// MJRefreshBackFooter.m
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshBackFooter.h"
@interface MJRefreshBackFooter()
@property (assign, nonatomic) NSInteger lastRefreshCount;
@property (assign, nonatomic) CGFloat lastBottomDelta;
@end
@implementation MJRefreshBack... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Base/MJRefreshBackFooter.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,148 |
```objective-c
//
// MJRefreshBackFooter.h
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshFooter.h"
@interface MJRefreshBackFooter : MJRefreshFooter
@end
``` | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Base/MJRefreshBackFooter.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 51 |
```objective-c
// : path_to_url
// : path_to_url
// MJRefreshHeader.m
// MJRefreshExample
//
// Created by MJ Lee on 15/3/4.
//
#import "MJRefreshHeader.h"
@interface MJRefreshHeader()
@property (assign, nonatomic) CGFloat insetTDelta;
@end
@implementation MJRefreshHeader
#pragma mark -
+ (instancetype)headerW... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Base/MJRefreshHeader.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,030 |
```objective-c
// : path_to_url
// : path_to_url
// MJRefreshComponent.m
// MJRefreshExample
//
// Created by MJ Lee on 15/3/4.
//
#import "MJRefreshComponent.h"
#import "MJRefreshConst.h"
#import "UIView+MJExtension.h"
#import "UIScrollView+MJRefresh.h"
@interface MJRefreshComponent()
@property (strong, nonatom... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Base/MJRefreshComponent.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,284 |
```objective-c
//
// MJRefreshStateHeader.m
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshStateHeader.h"
@interface MJRefreshStateHeader()
{
/** label */
__unsafe_unretained UILabel *_lastUpdatedTimeLabel;
/** label */
__unsafe_unretained UILabel *_stateLabel;
}
/** ... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Header/MJRefreshStateHeader.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,033 |
```objective-c
//
// MJRefreshGifHeader.m
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshGifHeader.h"
@interface MJRefreshGifHeader()
{
__unsafe_unretained UIImageView *_gifView;
}
/** */
@property (strong, nonatomic) NSMutableDictionary *stateImages;
/** */
@property (strong, n... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Header/MJRefreshGifHeader.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 767 |
```objective-c
//
// MJRefreshNormalHeader.m
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshNormalHeader.h"
@interface MJRefreshNormalHeader()
{
__unsafe_unretained UIImageView *_arrowView;
}
@property (weak, nonatomic) UIActivityIndicatorView *loadingView;
@end
@implementation M... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Header/MJRefreshNormalHeader.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 752 |
```objective-c
//
// MJRefreshGifHeader.h
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshStateHeader.h"
@interface MJRefreshGifHeader : MJRefreshStateHeader
@property (weak, nonatomic, readonly) UIImageView *gifView;
/** stateimages duration*/
- (void)setImages:(NSArray *)images dura... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Header/MJRefreshGifHeader.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 113 |
```objective-c
//
// MJRefreshNormalHeader.h
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshStateHeader.h"
@interface MJRefreshNormalHeader : MJRefreshStateHeader
@property (weak, nonatomic, readonly) UIImageView *arrowView;
/** */
@property (assign, nonatomic) UIActivityIndicatorVie... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Header/MJRefreshNormalHeader.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 83 |
```objective-c
//
// MJRefreshStateHeader.h
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshHeader.h"
@interface MJRefreshStateHeader : MJRefreshHeader
#pragma mark -
/** block */
@property (copy, nonatomic) NSString *(^lastUpdatedTimeText)(NSDate *lastUpdatedTime);
/** label */
@prop... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Header/MJRefreshStateHeader.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 136 |
```objective-c
//
// MJRefreshAutoStateFooter.h
// MJRefreshExample
//
// Created by MJ Lee on 15/6/13.
//
#import "MJRefreshAutoFooter.h"
@interface MJRefreshAutoStateFooter : MJRefreshAutoFooter
/** label */
@property (weak, nonatomic, readonly) UILabel *stateLabel;
/** state */
- (void)setTitle:(NSString *)tit... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 111 |
```objective-c
//
// MJRefreshAutoGifFooter.m
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshAutoGifFooter.h"
@interface MJRefreshAutoGifFooter()
{
__unsafe_unretained UIImageView *_gifView;
}
/** */
@property (strong, nonatomic) NSMutableDictionary *stateImages;
/** */
@propert... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 646 |
```objective-c
//
// MJRefreshAutoGifFooter.h
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshAutoStateFooter.h"
@interface MJRefreshAutoGifFooter : MJRefreshAutoStateFooter
@property (weak, nonatomic, readonly) UIImageView *gifView;
/** stateimages duration*/
- (void)setImages:(NSArr... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 117 |
```objective-c
//
// MJRefreshAutoNormalFooter.h
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshAutoStateFooter.h"
@interface MJRefreshAutoNormalFooter : MJRefreshAutoStateFooter
/** */
@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle;
@end
``` | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 74 |
```objective-c
//
// MJRefreshAutoStateFooter.m
// MJRefreshExample
//
// Created by MJ Lee on 15/6/13.
//
#import "MJRefreshAutoStateFooter.h"
@interface MJRefreshAutoStateFooter()
{
/** label */
__unsafe_unretained UILabel *_stateLabel;
}
/** */
@property (strong, nonatomic) NSMutableDictionary *stateTi... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 472 |
```objective-c
//
// MJRefreshAutoNormalFooter.m
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshAutoNormalFooter.h"
@interface MJRefreshAutoNormalFooter()
@property (weak, nonatomic) UIActivityIndicatorView *loadingView;
@end
@implementation MJRefreshAutoNormalFooter
#pragma mark -
... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 389 |
```objective-c
//
// MJRefreshBackNormalFooter.h
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshBackStateFooter.h"
@interface MJRefreshBackNormalFooter : MJRefreshBackStateFooter
@property (weak, nonatomic, readonly) UIImageView *arrowView;
/** */
@property (assign, nonatomic) UIActi... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 87 |
```objective-c
//
// MJRefreshBackGifFooter.h
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshBackStateFooter.h"
@interface MJRefreshBackGifFooter : MJRefreshBackStateFooter
@property (weak, nonatomic, readonly) UIImageView *gifView;
/** stateimages duration*/
- (void)setImages:(NSArr... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 117 |
```objective-c
//
// MJRefreshBackStateFooter.h
// MJRefreshExample
//
// Created by MJ Lee on 15/6/13.
//
#import "MJRefreshBackFooter.h"
@interface MJRefreshBackStateFooter : MJRefreshBackFooter
/** label */
@property (weak, nonatomic, readonly) UILabel *stateLabel;
/** state */
- (void)setTitle:(NSString *)titl... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 110 |
```objective-c
//
// MJRefreshBackGifFooter.m
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshBackGifFooter.h"
@interface MJRefreshBackGifFooter()
{
__unsafe_unretained UIImageView *_gifView;
}
/** */
@property (strong, nonatomic) NSMutableDictionary *stateImages;
/** */
@propert... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 765 |
```objective-c
//
// MJRefreshBackNormalFooter.m
// MJRefreshExample
//
// Created by MJ Lee on 15/4/24.
//
#import "MJRefreshBackNormalFooter.h"
@interface MJRefreshBackNormalFooter()
{
__unsafe_unretained UIImageView *_arrowView;
}
@property (weak, nonatomic) UIActivityIndicatorView *loadingView;
@end
@impl... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 758 |
```objective-c
//
// MJRefreshBackStateFooter.m
// MJRefreshExample
//
// Created by MJ Lee on 15/6/13.
//
#import "MJRefreshBackStateFooter.h"
@interface MJRefreshBackStateFooter()
{
/** label */
__unsafe_unretained UILabel *_stateLabel;
}
/** */
@property (strong, nonatomic) NSMutableDictionary *stateTi... | /content/code_sandbox/WeChat/ThirdLib/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 419 |
```objective-c
//
// NSLayoutConstraint+MASDebugAdditions.m
// Masonry
//
// Created by Jonas Budelmann on 3/08/13.
//
#import "NSLayoutConstraint+MASDebugAdditions.h"
#import "MASConstraint.h"
#import "MASLayoutConstraint.h"
@implementation NSLayoutConstraint (MASDebugAdditions)
#pragma mark - description maps
... | /content/code_sandbox/WeChat/ThirdLib/Masonry/NSLayoutConstraint+MASDebugAdditions.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,133 |
```objective-c
//
// MASLayoutConstraint.h
// Masonry
//
// Created by Jonas Budelmann on 3/08/13.
//
#import "MASUtilities.h"
/**
* When you are debugging or printing the constraints attached to a view this subclass
* makes it easier to identify which constraints have been created via Masonry
*/
@interface MA... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASLayoutConstraint.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 101 |
```objective-c
//
// MASConstraintBuilder.m
// Masonry
//
// Created by Jonas Budelmann on 20/07/13.
//
#import "MASConstraintMaker.h"
#import "MASViewConstraint.h"
#import "MASCompositeConstraint.h"
#import "MASConstraint+Private.h"
#import "MASViewAttribute.h"
#import "View+MASAdditions.h"
@interface MASConstrai... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASConstraintMaker.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,826 |
```objective-c
//
// MASCompositeConstraint.h
// Masonry
//
// Created by Jonas Budelmann on 21/07/13.
//
#import "MASConstraint.h"
#import "MASUtilities.h"
/**
* A group of MASConstraint objects
*/
@interface MASCompositeConstraint : MASConstraint
/**
* Creates a composite with a predefined array of children
... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASCompositeConstraint.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 106 |
```objective-c
//
// MASConstraint.h
// Masonry
//
// Created by Jonas Budelmann on 22/07/13.
//
#import "MASUtilities.h"
/**
* Enables Constraints to be created with chainable syntax
* Constraint can represent single NSLayoutConstraint (MASViewConstraint)
* or a group of NSLayoutConstraints (MASComposisteCo... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASConstraint.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,533 |
```objective-c
//
// MASCompositeConstraint.m
// Masonry
//
// Created by Jonas Budelmann on 21/07/13.
//
#import "MASCompositeConstraint.h"
#import "MASConstraint+Private.h"
@interface MASCompositeConstraint () <MASConstraintDelegate>
@property (nonatomic, strong) id mas_key;
@property (nonatomic, strong) NSMuta... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASCompositeConstraint.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 982 |
```objective-c
//
// Masonry.h
// Masonry
//
// Created by Jonas Budelmann on 20/07/13.
//
#import <Foundation/Foundation.h>
//! Project version number for Masonry.
FOUNDATION_EXPORT double MasonryVersionNumber;
//! Project version string for Masonry.
FOUNDATION_EXPORT const unsigned char MasonryVersionString[];
... | /content/code_sandbox/WeChat/ThirdLib/Masonry/Masonry.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 168 |
```objective-c
//
// NSArray+MASAdditions.h
//
//
// Created by Daniel Hammond on 11/26/13.
//
//
#import "MASUtilities.h"
#import "MASConstraintMaker.h"
#import "MASViewAttribute.h"
@interface NSArray (MASAdditions)
/**
* Creates a MASConstraintMaker with each view in the callee.
* Any constraints defined a... | /content/code_sandbox/WeChat/ThirdLib/Masonry/NSArray+MASAdditions.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 361 |
```objective-c
//
// UIView+MASAdditions.h
// Masonry
//
// Created by Jonas Budelmann on 20/07/13.
//
#import "MASUtilities.h"
#import "MASConstraintMaker.h"
#import "MASViewAttribute.h"
/**
* Provides constraint maker block
* and convience methods for creating MASViewAttribute which are view + NSLayoutAttribu... | /content/code_sandbox/WeChat/ThirdLib/Masonry/View+MASAdditions.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 812 |
```objective-c
//
// UIView+MASShorthandAdditions.h
// Masonry
//
// Created by Jonas Budelmann on 22/07/13.
//
#import "View+MASAdditions.h"
#ifdef MAS_SHORTHAND
/**
* Shorthand view additions without the 'mas_' prefixes,
* only enabled if MAS_SHORTHAND is defined
*/
@interface MAS_VIEW (MASShorthandAddition... | /content/code_sandbox/WeChat/ThirdLib/Masonry/View+MASShorthandAdditions.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 704 |
```objective-c
//
// UIView+MASAdditions.m
// Masonry
//
// Created by Jonas Budelmann on 20/07/13.
//
#import "View+MASAdditions.h"
#import <objc/runtime.h>
@implementation MAS_VIEW (MASAdditions)
- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *))block {
self.translatesAutoresizingMaskIntoConst... | /content/code_sandbox/WeChat/ThirdLib/Masonry/View+MASAdditions.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,029 |
```objective-c
//
// MASAttribute.h
// Masonry
//
// Created by Jonas Budelmann on 21/07/13.
//
#import "MASUtilities.h"
/**
* An immutable tuple which stores the view and the related NSLayoutAttribute.
* Describes part of either the left or right hand side of a constraint equation
*/
@interface MASViewAttrib... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASViewAttribute.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 207 |
```objective-c
//
// MASLayoutConstraint.m
// Masonry
//
// Created by Jonas Budelmann on 3/08/13.
//
#import "MASLayoutConstraint.h"
@implementation MASLayoutConstraint
@end
``` | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASLayoutConstraint.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 43 |
```objective-c
//
// MASAttribute.m
// Masonry
//
// Created by Jonas Budelmann on 21/07/13.
//
#import "MASViewAttribute.h"
@implementation MASViewAttribute
- (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute {
self = [super init];
if (!self) return nil;
_view ... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASViewAttribute.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 218 |
```objective-c
//
// MASUtilities.h
// Masonry
//
// Created by Jonas Budelmann on 19/08/13.
//
#import <Foundation/Foundation.h>
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#define MAS_VIEW UIView
#define MASEdgeInsets UIEdgeInsets
typedef UILayoutPriority MASLayoutPriority;
static const MA... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASUtilities.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,404 |
```objective-c
//
// MASConstraint+Private.h
// Masonry
//
// Created by Nick Tymchenko on 29/04/14.
//
#import "MASConstraint.h"
@protocol MASConstraintDelegate;
@interface MASConstraint ()
/**
* Whether or not to check for an existing constraint instead of adding constraint
*/
@property (nonatomic, assign)... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASConstraint+Private.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 381 |
```objective-c
//
// NSArray+MASAdditions.m
//
//
// Created by Daniel Hammond on 11/26/13.
//
//
#import "NSArray+MASAdditions.h"
#import "View+MASAdditions.h"
@implementation NSArray (MASAdditions)
- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))block {
NSMutableArray *constraints = [NS... | /content/code_sandbox/WeChat/ThirdLib/Masonry/NSArray+MASAdditions.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 288 |
```objective-c
//
// MASConstraint.h
// Masonry
//
// Created by Jonas Budelmann on 20/07/13.
//
#import "MASViewAttribute.h"
#import "MASConstraint.h"
#import "MASLayoutConstraint.h"
#import "MASUtilities.h"
/**
* A single constraint.
* Contains the attributes neccessary for creating a NSLayoutConstraint and ... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASViewConstraint.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 274 |
```objective-c
//
// NSArray+MASShorthandAdditions.h
// Masonry
//
// Created by Jonas Budelmann on 22/07/13.
//
#import "NSArray+MASAdditions.h"
#ifdef MAS_SHORTHAND
/**
* Shorthand array additions without the 'mas_' prefixes,
* only enabled if MAS_SHORTHAND is defined
*/
@interface NSArray (MASShorthandAddi... | /content/code_sandbox/WeChat/ThirdLib/Masonry/NSArray+MASShorthandAdditions.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 219 |
```objective-c
//
// MASConstraint.m
// Masonry
//
// Created by Jonas Budelmann on 20/07/13.
//
#import "MASViewConstraint.h"
#import "MASConstraint+Private.h"
#import "MASCompositeConstraint.h"
#import "MASLayoutConstraint.h"
#import "View+MASAdditions.h"
#import <objc/runtime.h>
@interface MAS_VIEW (MASConstrai... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASViewConstraint.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 2,540 |
```objective-c
//
// NSLayoutConstraint+MASDebugAdditions.h
// Masonry
//
// Created by Jonas Budelmann on 3/08/13.
//
#import "MASUtilities.h"
/**
* makes debug and log output of NSLayoutConstraints more readable
*/
@interface NSLayoutConstraint (MASDebugAdditions)
@end
``` | /content/code_sandbox/WeChat/ThirdLib/Masonry/NSLayoutConstraint+MASDebugAdditions.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 67 |
```objective-c
//
// MASConstraint.m
// Masonry
//
// Created by Nick Tymchenko on 1/20/14.
//
#import "MASConstraint.h"
#import "MASConstraint+Private.h"
#define MASMethodNotImplemented() \
@throw [NSException exceptionWithName:NSInternalInconsistencyException \
reason:[NSSt... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASConstraint.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,660 |
```objective-c
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* Created by james <path_to_url on 9/28/11.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import "SDWebImageDecoder.... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/SDWebImageDecoder.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 601 |
```objective-c
//
// MASConstraintBuilder.h
// Masonry
//
// Created by Jonas Budelmann on 20/07/13.
//
#import "MASConstraint.h"
#import "MASUtilities.h"
typedef NS_OPTIONS(NSInteger, MASAttribute) {
MASAttributeLeft = 1 << NSLayoutAttributeLeft,
MASAttributeRight = 1 << NSLayoutAttributeRight,
MASAtt... | /content/code_sandbox/WeChat/ThirdLib/Masonry/MASConstraintMaker.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,086 |
```objective-c
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import "UIView+WebCacheOperation.h"
#import "objc/runtime.h"
static char ... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/UIView+WebCacheOperation.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 382 |
```objective-c
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <UIKit/UIKit.h>
#import "SDWebImageManager.h"
@interface UIView (W... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/UIView+WebCacheOperation.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 225 |
```objective-c
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <Foundation/Foundation.h>
@protocol SDWebImageOperation <NSObject>... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/SDWebImageOperation.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 78 |
```objective-c
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import "UIImageView+HighlightedWebCache.h"
#import "UIView+WebCacheOperati... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/UIImageView+HighlightedWebCache.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 959 |
```objective-c
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
* (c) Jamie Pinkham
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <TargetConditionals.h>
#ifdef __OBJC_GC__
#er... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/SDWebImageCompat.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 437 |
```objective-c
//
// Created by Fabrice Aneche on 06/01/14.
//
#import <Foundation/Foundation.h>
@interface NSData (ImageContentType)
/**
* Compute the content type for an image data
*
* @param data the input data
*
* @return the content type as string (i.e. image/jpeg, image/gif)
*/
+ (NSString *)sd_conten... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/NSData+ImageContentType.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 123 |
```objective-c
//
// Created by Fabrice Aneche on 06/01/14.
//
#import "NSData+ImageContentType.h"
@implementation NSData (ImageContentType)
+ (NSString *)sd_contentTypeForImageData:(NSData *)data {
uint8_t c;
[data getBytes:&c length:1];
switch (c) {
case 0xFF:
return @"image/jpeg";... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/NSData+ImageContentType.m | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 271 |
```objective-c
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <Foundation/Foundation.h>
#import "SDWebImageCompat.h"
typedef NS_... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/SDImageCache.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,783 |
```objective-c
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <Foundation/Foundation.h>
#import "SDWebImageManager.h"
@class SDW... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/SDWebImagePrefetcher.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 827 |
```objective-c
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <Foundation/Foundation.h>
#import "SDWebImageCompat.h"
#import "SDW... | /content/code_sandbox/WeChat/ThirdLib/SDWebImage/SDWebImageDownloader.h | objective-c | 2016-06-06T01:53:42 | 2024-08-05T09:45:48 | WeChat | zhengwenming/WeChat | 1,626 | 1,410 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.