Recently Added iOS Source Code Examples

More >
  • A game refers to FlappyBird, developed in SpriteKit framework.

    FlappyRect

    10/31/2014

    A game refers to FlappyBird, developed in SpriteKit framework.。

  • To use WeatherFontIcon, download WeatherFont inlcude FontHeader.h and Pe-icon-7-weather.ttf inside your project and follow the below steps:

Open Info.plist file add row and set key value as "Fonts provided by application", by default array object is created
Set Value for Item 0 as "Pe-icon-7-weather.ttf"
Use can you font icon as normal UILabel
An example of making a label with weather font:

UILabel *fontLabel = [[UILabel alloc] initWithFrame:self.view.bounds];
[fontLabel setFont:[UIFont fontWithName:@"Pe-icon-7-weather.ttf" size:90]];
[fontLabel setText:[NSString stringWithFormat:@"%@ Weather Icon Random text",kWind]];
[fontLabel setTextColor:[UIColor whiteColor]];
[self.view addSubview:fontLabel];
Where "kWind" you can find inside FontHeader.h file all available weather icon which you can used to set the UILabel text value.

There's also an example project.

    WeatherFontIcon

    10/30/2014

    Using Font Icon Set within Label to display weather icon Weather 7 Icon Font Set。

  • Use a front or back camera on backgroundView in your app. This is perfect for Logins or Welcome screens.

Usage:
1.Define JMBackgroundCameraView:
@property (nonatomic, strong) JMBackgroundCameraView *v;

2.You can use two constructors, device position for back or front camera:
-(instancetype)initWithFrame:(CGRect)frame positionDevice:(DevicePositon)position blur:(BOOL)blur;
or:
-(instancetype)initWithFrame:(CGRect)frame positionDevice:(DevicePositon)position;

3.Just need add view addSubview

    JMBackgroundCameraView

    10/30/2014

    Use a front or back camera on backgroundView in your app. 。

  •  NFXIntroViewController*vc = [[NFXIntroViewController alloc] initWithViews:@[i1,i2,i3,i4,i5,i2,i6,i7,i8,i9]];
    [self presentViewController:vc animated:true completion:nil];

    NFXTourViewController

    10/28/2014

    This is the ViewController that the user can see in a simple way the tour image。

  • // support Hex color to RGB color
circularProgress.colors = [circularProgress.colorHex(0xA6E39D).CGColor!, circularProgress.colorHex(0xAEC1E3).CGColor!, circularProgress.colorHex(0xE1A5CB).CGColor!, circularProgress.colorHex(0xF3C0AB).CGColor!]

    KYCircularProgress

    10/28/2014

    Flexible progress bar written in Swift。

  • #import "InstagramItem.h"
#import "InstagramFeedTableViewCell.h"

self.dataSource = [[InstagramItem newDataSource] mutableCopy];

    iOS8SelfSizingCells

    10/28/2014

    This is instagram app feed tableView demo use iOS8 Self Sizing Cells。

  • ou can create items for the grid menu using CNPGridMenuItem.

@property (nonatomic, strong) NSString *title;

@property (nonatomic, strong) UIImage *icon;

@property (nonatomic, copy) SelectionHandler selectionHandler;

    CNPGridMenu

    10/28/2014

    CNPGridMenu is a Mailbox style grid menu with a blurred background。

  •     JMTextfieldFormViewDescription *textfieldDesc  = [JMTextfieldFormViewDescription new];
    textfieldDesc.placeholder = @"Mon placeholder";
    textfieldDesc.data = model.textfieldText1;
    textfieldDesc.formDelegate = self;
    textfieldDesc.modelKey = @"textfieldText1";

    JMFormDescription

    10/27/2014

    JMFormDescription is an Objective-C library for easily creating forms on iOS。

  • Import "UIColor+HBVHamonies.h" and use as with UIColor.

    UIColor-HBVHarmonies

    10/27/2014

    Blocks-based UIColor category that makes creating color harmonies easy.。

  • #import "MMCell.h"

MMCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
    
    if (cell == nil) {
        cell = [[MMCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableIdentifier];
    }

    MMTableCellAnimation

    10/27/2014

    This project is about table cell translation animation。

  • Select the NavigationBar from the Navigation Controller in the Interface Builder. Then, in Utilities -> Identity Inspector select DSNavigationBar as the Class.

    DSTransparentNavigationBar

    10/27/2014

    UINavigationBar that allows to set a transparency colors。

  • Use WMLCollectionView instead of UICollectionView and WMLCollectionViewCell for cells, displaying view controllers.

Set the collectionView.containerViewController to the view controller that is hosting children view controllers.

    Voltron

    10/24/2014

    UICollectionView with UIViewControllers instead of cells。

  • mport UIScrollView+VGParallaxHeader.h, and use as follows:

- (void)viewDidLoad {
    [super viewDidLoad];

    HeaderView *headerView = [HeaderView alloc] init];

    // or self.tableView
    [self.scrollView setParallaxHeaderView:headerView
                                      mode:VGParallaxHeaderModeFill // For more modes have a look in UIScrollView+VGParallaxHeader.h 
                                    height:200
                           shadowBehaviour:VGParallaxHeaderShadowBehaviourDisappearing]; // For more behaviours have a look in UIScrollView+VGParallaxHeader.h 
}

    VGParallaxHeader

    10/24/2014

    Parallax Header Class (UIScrollView/UITableView Category) that should work with all kinds of Table Views and Scroll Views while using Auto Layout。

  • Supports adding actionable buttons on either side of the cell.
You can customize a button's title text and color.
Each button will have a block handler that will execute when pressed.
The left/right most button will pin to the top container view as the user swipes all the way. This will also execute that button's action.

    JASwipeCell

    10/24/2014

    A UITableViewCell subclass that displays customizable left or right buttons that are revealed as the user swipes the cell in either direction。

  • can supply own queue, and comes with serial and concurrent queues out of the box
can define own layouting (where to place notifications), comes with top layout and right side layout.
can supply own notifications view. You can use the IIShortNotificationDefaultView as a base since it's pretty flexible.

    IIShortNotificationPresenter

    10/23/2014

    resents short notifications over a view. Supports queuing and 3 presentation styles. 。

  • SwiftForms is a powerful and extremely flexible library written in Swift that allows to create forms by just defining them in a couple of lines. It also provides the ability to customize cells appearance, use custom cells and define your own selector controllers.

    SwiftForms

    10/23/2014

    SwiftForms is a powerful and extremely flexible library written in Swift。

  • #import "HAPaperCollectionViewController.h"

@interface HASmallCollectionViewController : HAPaperCollectionViewController

HACollectionViewLargeLayout *largeLayout = [[HACollectionViewLargeLayout alloc] init];
    HAPaperCollectionViewController *nextCollectionViewController = [[HAPaperCollectionViewController alloc] initWithCollectionViewLayout:largeLayout];

    MMPaper

    10/23/2014

    This is Extension Of HAPaper (zoom effect on UIPanGestureRecognizer)。

  • ComposedDataSource is a simple library built on UIKit framework which allows you to create complex table layouts by decomposing them into smaller and more manageable elements, encouraging modularity and reusability.

    ComposedDataSource

    10/23/2014

    ComposedDataSource is a simple library built on UIKit framework。

Popular Code

More >
  • 小编见过的最牛逼的图像编辑器App开源代码,没有之一。好吧,这份代码不是一份类库,你不能直接使用,它是App作者开源出来的一款已经发布到App Stoe的图像编辑器。但是,小编真的觉得这款App的图像处理效果非常不错,基本包括了你能想到的滤镜效果,而且整个App交互也很棒。小编十分佩服App的开发者竟然能将这样的App开源了。大家下载学习吧!
小编注:上面不算很正规的代码描述语言,但是小编遇到好代码真的十分激动,也就顾不了这么多了。应用的App Store下载地址:https://itunes.apple.com/app/id681031406

    ThatPhoto

    7291 downloads

    ThatPhoto is an app that lets you view and edit your photos。

  • 类似于Faceboo App的Stacked View。点击主界面上的一个按钮时,主界面左边滑动一半显示出一个子视图,点击列表上任意一行,右边部分出现新内容,左边子视图滑出界面。当对左边视图进行搜索时,左边一半界面的视图变成全界面显示搜索内容。

    SideBar Navigation

    2347 downloads

    A clone of the new Facebook iOS UI paradigm。

  • 利用 cocos2d 实现点击屏幕出现水纹(涟漪)效果。允许点击多处屏幕出现多个涟漪。
小编注:这是小编看到过的实现涟漪效果最好的代码。

    Water Ripple

    2223 downloads

    Use cocos2d to implement water ripple demo。

  • 实现iBook电子书那样的书本翻页效果。例子中可以翻页pdf文档、图片、一般的视图等等。

    Page Peel View

    2125 downloads

    Leaves is a simple way to present a page-turning interface similar to Apple's iBooks。

  • 实现较为完整的图片展示功能(Image Gallery),包括手指划动切换图片,点击图片隐藏导航条,放大图片功能等等。

    Image Gallery

    1764 downloads

    A photo gallery viewer with full image gallery functions。

  • 利用 OpenGL ES 2.0 实现点击屏幕出现水纹(涟漪)效果。允许点击多处屏幕出现多个涟漪。Demo由于用到照相机,所以只能在真机中测试。仅支持iOS 5.0以上。

小编注:感谢开发者@七五三六九 推荐代码于Code4App。

    Camera Ripple

    1729 downloads

    Clicking the screen will generate ripple effect。

  • 实现网格化视图(Grid View),或者可以视作为多列的表格(multiple column table)。每个网格视图支持点击动作。

    Grid Table View

    1688 downloads

    UIGridView offers a simple way to use a grid (multiple-column UITableView) on iOS。