Recently Added iOS Source Code Examples

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

  • One class file includes both pop and push transition and pop gesture.
Fully customizable transition animation.
Works for following iOS custom transition types:
UINavigationControllerpush and pop
UIViewControllerpresentations and dismissals

    CBStoreHouseTransition

    10/22/2014

    A custom transition inspired by Storehouse iOS app, also support pop gesture。

  • #import "THTinderNavigationBar.h"

THTinderNavigationController *tinderNavigationController = [[THTinderNavigationController alloc] init];

tinderNavigationController.viewControllers = @[
                                                   viewController1,
                                                   viewController2,
                                                   viewController3
                                                   ];
    
    tinderNavigationController.navbarItemViews = @[
                                                   [[NavigationBarItem alloc] init],
                                                   [[NavigationBarItem alloc] init],
                                                   [[NavigationBarItem alloc] init]
                                                   ];

    THTinderNavigationController

    10/22/2014

    A Tinder like navigation。

  • ou can build CCListViews that contain CCListViews (that contain CCListViews...) and they even support scrolling views within scrolling views.

    CCListView

    10/22/2014

    CCListView is a highly customizable sequential view container。

  • To add to your app, simply create a ZoomTransition by passing the current NavigationController Then set the ZoomTransition object be the NavigationController delegate

if let navigationController = self.navigationController {
    self.animationController = ZoomTransition(navigationController: navigationController)
}
self.navigationController?.delegate = animationController

    ZoomTransition

    10/21/2014

    An easy to use interactive zoom transition for presenting view controllers onto a navigation stack. This transition mimics the iOS 7 & 8 photos app.。

  • Project allows for expanding menus in left, right, up, and down directions. Using the class is as simple as setting your home button and adding an array of menu buttons.

    DWBubbleMenuButton

    10/21/2014

    DWBubbleMenuButton is a simple animation class for expanding and collapsing a variable sized menu。

  • DVSwitch was inspired by UISwitch and UISegmentedControl. The goals of this code are:

Easily customizable control with nice animations
Supporting pan or swipe interactions
Requires very little setup - images are not needed
Beautiful font color inversion effect - label color changes per pixel:
Automatic adjustment based on number of items

    DVSwitch

    10/21/2014

    Customizable control based on UISwitch and UISegmentedControl written in Objective-C。

  • Create a RSdotsView and add it to a view (or use storyboard)
  var dots = RSDotsView(frame: CGRectMake(50, 50, 300, 300))
  self.view.addSubview(dots)
Change the dotsColor
  dots.dotsColor = UIColor.redColor()
Start or Stop animating the dots
  dots.startAnimating()
  dots.stopAnimating()

    RSDotsView

    10/21/2014

    A simple view that show pulsing dots。

  • UIImage *image0 = [UIImage imageNamed:@"main-camera-button"];
UIImage *image1 = [UIImage imageNamed:@"main-library-button"];
NSArray *images = @[image0, image1];

    PicsLikeControl

    10/20/2014

    A kind of customized button (users can customize the function of the button with a simple fling)。

  • Circle shaped control to select given number of values.

Structure:

There are three kinds of objects:

NOCircleSelector, which is an UIView and represents the whole area where the control is drawn. MIN(selector.width, selector.height) / 2 is the radius of selector.
NOCircleDot, which is an UIView and represents the single dot. The size and all properties can be changed via properties. Don't forget about normal UIView properties. The control is easy to subclass so you can easily add custom views. To access it use delegate methods or dots array of NOCircleSelector.
NOCircleDotConnection - a model class, representing the line between two NOCircleDot. You can customise it via properties. To access it use delegate methods or dotConnections array of NOCircleSelector. The recommended method to differ the dot is to use NS_ENUM and set tags of these.
Customisable:

In NOCircleSelector (+ all UIView properties like backgroundColor etc):

numberOfDots
[_circleSelector setNumberOfDots:4];
dotRadius
[_circleSelector setDotRadius:50.f];
lineWidth - sets defaults in NOCircleDotConnection
[_circleSelector setLineWidth::2.f];
lineColor - sets defaults in NOCircleDotConnection
[_circleSelector setLineColor:[UIColor redColor]];
fillColor
[_circleSelector setFillColor:[UIColor blueColor]];
In NOCircleDot (+ all UIView properties like backgroundColor etc):

lineWidth
[dot setLineWidth:2.f];
lineColor
[dot setLineColor:[UIColor redColor]];
fillColor
[dot setFillColor:[UIColor greenColor]];
textLabel
[dot.textLabel setText@"Hello!"];
imageView
[dot.imageView setImage:[UIImage imageNamed:@"girl"]];
angle - degrees, represents current angle of dot in selector
[dot setAngle:90.f];
minAngle - degrees, represents non crossable minimum range of dot in selector. Default 0.
[dot setMinAngle:0.f];
maxAngle - degrees, represents non crossable maximum range of dot in selector. Default 360.
[dot setMaxAngle:360.f];
In NOCircleDotConnection:

startDot - set automatically, do not overload if not required. Describes the first dot of connection.
endDot - set automatically, do not overload if not required. Describes the second dot of connection.
connectionColor
[connection setConnectionColor:[UIColor redColor]];
lineWidth
[connection setLineWidth:3.f];
dotConnectionBeetweenTag1:tag2: - convenience method to compare whether 2 dots are connected.
[dot setLineWidth:2.f];

    NOCircleSelector

    10/20/2014

    Circle shaped control to select given number of values.。

  • NSMutableArray *dropdownItems = [[NSMutableArray alloc] init];
IGLDropDownItem *item = [[IGLDropDownItem alloc] init];
[item setIconImage:[UIImage imageNamed:@"icon.png"]];
[item setText:@"title"];
[dropdownItems addObject:item];

    IGLDropDownMenu

    10/20/2014

    An iOS drop down menu with pretty animation.。

  • MagnetPopupPicker
Simple and easy to use drop down substitution for IOS.

Usage:

self.button = [[PopupPickerButton alloc] initWithFrame:CGRectMake(11, 50, 150, 30)];

[self.button setTitle:@"Select" forState:UIControlStateNormal];

NSArray *list = [NSArray arrayWithObjects:[KeyValuePair keyValuePairWithKeyAndValue:@"test1" value:@"Test 1"], [KeyValuePair keyValuePairWithKeyAndValue:@"test2" value:@"Test 2"], [KeyValuePair keyValuePairWithKeyAndValue:@"test3" value:@"Test 3"], nil];

[self.button setOptions:list keyNames:[KeyValuePair keyValuePairWithKeyAndValue:@"key" value:@"value"]];

    MagnetPopupPicker

    10/20/2014

    Simple and easy to use drop down substitution for IOS.。

Popular Code

More >