Recently Added iOS Source Code Examples

More >
  • 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。

  • DLRadioButton *firstRadioButton = [[DLRadioButton alloc] initWithFrame:CGRectMake(30, 200, 200, 30)];
firstRadioButton.buttonSideLength = 30;
[firstRadioButton setTitle:@"Red Button" forState:UIControlStateNormal];
[firstRadioButton setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
firstRadioButton.circleColor = [UIColor redColor];
firstRadioButton.indicatorColor = [UIColor redColor];
firstRadioButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;

    DLRadioButton

    10/22/2014

    To run the example project, clone the repo, and run pod install from the Example directory first。

Popular Code

More >
  • 实现视差滑动效果特别棒的ScrollView切换视图效果。手指滑动视图时,新视图的滑动进来的速度高于当前视图滑动出去的速度,所以整个视图切换效果给人十分流畅和谐的感觉。其实这份代码还实现了另外一种拖拉出现新视图的效果。手指拖动视图的温度数字,会拖拉出新视图,并且会给当前视图覆盖上渐渐模糊的效果。这两种效果在iOS7的雅虎天气App中可以看到。

    BTGlassScrollView

    2231 downloads

    Inspired by Yahoo Weather App, this easy to use view replicates the look and feel。

  • 获取系统emoji表情,实现表情键盘,输入框能够随着输入文字的长度而自动增长,模仿微信键盘,能够切换文字键盘和表情键盘。
小编注:感谢作者@好好happy好好 分享原创代码于Code4App。

    custom emoji keyboard

    2053 downloads

    custom emoji keyboard。

  • 对图片进行处理,显示各种滤镜效果。
作者说:本人是新手菜鸟,代码可能写的不大好,各位见谅啊。
小编注:感谢开发者@林俗人 分享代码于Code4App。

    image filters

    1993 downloads

    Image filter demo, which provide dozens of image filters。

  • 实现 app 中常见的搜索框(UISearchBar)在列表视图中的滚动行为。本代码实现了三种情况,一种是搜索框始终位于列表的顶部,列表的拖动时搜索框都固定不动。第二种是,列表视图刚加载时,搜索框隐藏在视图的顶部,当往下拖动列表时,搜索框才会出现,继续往下拖动列表,搜索框会随着列表的拖动而移动,当往上拖动列表时,搜索框隐藏。第三种情况和第二种情况差不多,只不过在往下拖动列表时,搜索框出现之后,会固定不动,只有往上拖动列表时才会隐藏搜索框。具体情况视频。

    TableView with SearchBar

    1745 downloads

    Small demo project for the various search bar scrolling behaviors found in Apple's apps。

  • 实现cover flow效果, 处于中间位置的图片亮度和大小都突出于旁边的图片。当滑动cover flow时,旁边的图片随着位移会慢慢变大和变亮。
@flycent_stars 在使用这份代码时遇到一点问题,提出了他自己的解决方案:这个代码中reloaddata后,调用layoutsubviews应移除掉之前的subviews,然后加上[[_scrollView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];即可。
感谢@@flycent_stars 。

    Paged Flow View

    1733 downloads

    A Paging Enabled Flow View, like screenshots view in iPhone App Store。

  • 自定义 UIAlertView 的样式,包括背景颜色、边框等等,更重要的是,能够自定义 Alert View 的弹出和消失的动画,包括渐隐渐现、翻转、坠落等等。

    URBAlertView

    1624 downloads

    A completely custom UIAlertView that supports custom drawing for the core component and internal buttons。

  • 以Kal日历控件为基础,界面更新为IOS7扁平化风格。并且可以设置单选和范围选择两种模式。还可以设置初始选择日期和可选日期的范围。
作者说:Kal是一个日历控件(http://code4app.com/ios/4f7049e56803fad237000000),但是已经很久没有更新了。这是我的fork。
小编注:感谢开发者@文祥 发布代码于Code4App.com。

    Kal for IOS 7

    1553 downloads

    A calendar component for the iPhone (the UI is designed to match MobileCal)。