Skip to content

Instantly share code, notes, and snippets.

View ourui's full-sized avatar

Ourui ourui

  • iQIYI
  • ShangHai. China
View GitHub Profile
@ourui
ourui / CALayer+MBAnimationPersistence.h
Created January 2, 2020 03:36 — forked from matej/CALayer+MBAnimationPersistence.h
Persists (pauses) layer animations (including UIView animation generated animations) when the application enters into background and restores (resumes) animations from where they left off upon returning from background.
//
// CALayer+MBAnimationPersistence.h
//
// Created by Matej Bukovinski on 19. 03. 14.
// Copyright (c) 2014 Matej Bukovinski. All rights reserved.
//
#import <QuartzCore/QuartzCore.h>
@ourui
ourui / UIScrollView+ScrollsToTop.h
Created December 23, 2015 18:25 — forked from hfossli/UIScrollView+ScrollsToTop.h
A simple way to make sure there is only one scrollview which is able to scroll to top at a time
#import <UIKit/UIKit.h>
@interface UIScrollView (ScrollsToTop)
+ (void)forceNewViewsDefaultValueForScrollsToTop;
+ (void)makeOnlyThisScrollViewScrollToTopOnStatusBarTap:(UIScrollView *)scrollView;
- (void)makeOnlyThisScrollViewScrollToTopOnStatusBarTap;
@end
@ourui
ourui / NSNull+LCFMessageForwarding.h
Created December 23, 2015 06:03 — forked from leichunfeng/NSNull+LCFMessageForwarding.h
通过重写 NSNull 的消息转发方法,来避免给 [NSNull null] 发消息时的闪退问题
//
// NSNull+LCFMessageForwarding.h
// NSNull
//
// Created by leichunfeng on 15/12/22.
// Copyright © 2015年 leichunfeng. All rights reserved.
//
#import <Foundation/Foundation.h>