刚刚在线

分享iOS开发技术经验的自媒体网站

TwitterCover

更多iOS开发相关技术请关注iOS开发微信公众号 iOS开发 :

iOSDevTip

源代码

## TwitterCover ##

TwitterCover is a parallax top view with real time blur effect to any UIScrollView, inspired by Twitter for iOS.

Completely created using UIKit framework.

Easy to drop into your project.

You can add this feature to your own project, TwitterCover is easy-to-use.

Requirements

TwitterCover requires Xcode 5, targeting either iOS 5.0 and above, ARC-enabled.

How to use

Drag UIScrollView+TwitterCover.h amd UIScrollView+TwitterCover.m files to your project.

No other frameworks required.

#import "UIScrollView+TwitterCover.h"

UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:self.view.bounds];
[scrollView addTwitterCoverWithImage:[UIImage imageNamed:@"cover.png"]];

And do not forget to remove it in your dealloc method, otherwise memory leaks:

[scrollView removeTwitterCoverView];    

How it looks

Lincense

TwitterCover is available under the MIT license. See the LICENSE file for more info.

更多源代码:

DKCircleButton

VVDocumenter-Xcode

HackerNews

GPUImage