Latest 1.0.3
Homepage https://github.com/calimarkus/SimpleUIKit
License MIT
Platforms ios 8.0
Authors

This is a collection of a few UIKit API’s simplified.
Also see the includled Example Project on how to use all the APIs.

Screenshots

SimpleActivityView

A simple to use, easy to customize activity view. Example:

[[SimpleActivityView activityViewWithTitle:@"Title"]
presentActivityViewOnView:view
activityBlock:^(SimpleActivityView *activityView, SimpleActivityViewDismissBlock dismissBlock) {
  // do something that takes a while
  dismissBlock(); // call to dismiss the view again
});
}];

SimpleLocalNotification

A simplified API to schedule local notifications. Example:

[[SimpleLocalNotification sharedInstance]
scheduleLocalNotificationWithAlertBody:@"Notification Text"
timeIntervalFromNow:60*5 // in 5 minutes
uniqueIdentifier:@"001"
completion:nil];

SimpleTableView

A simplified tableView API. Great for simple static tableViews.
The biggest benefit is, that the definition of the cell, as well as it’s
action are in close proximity, which makes it very readable.
It’s also super easy to move rows between rows etc. without spending
thoughts on indexPath’s etc.’

Example on how do define a simple row including its tap handler:

[STVRow
rowWithCellReuseIdentifier:reuseIdentifier
title:@"Cell Title"
subtitle:nil
configureCellBlock:nil
didSelectBlock:^(STVRow *STVRow, UITableViewCell *cell, UITableView *tableView, NSIndexPath *indexPath) {
  // tap handler
}]

SimpleAlertController

A simplified API to present Alerts and ActionSheets.
Example for a simple confirmation alert:

[UIAlertController presentFromViewController:viewController
withTitle:@"Alert Title"
message:@"Alert Message"
confirmationButtonTitle:@"Ok"];

SimpleMotionEffects

A simplified API to add motion effects to your views. Example:

[view addMotionEffectWithMovement:CGPointMake(100, 100)];

Read more

SimpleAttributedString

A simple API to modify NSMutableAttributedString instances. Example:

[mutableString setFont:[UIFont boldSystemFontOfSize:textSize]
                 color:[UIColor orangeColor]
      forRangeOfString:@"Judy Hopps"];

SimplePositioning

A simple UIView cateogry for simplified layouting/positioning of views. Examples:

view.frameOrigin = CGPointMake(100, 100);
anotherView.frameRight = self.frameWidth - 20;
thirdView.centerX = self.frameWidth / 2.0;

Latest podspec

{
    "name": "SimpleUIKit",
    "version": "1.0.3",
    "summary": "This is a collection of a few UIKit API's simplified.",
    "description": "This simplifies the usage for various UIKit classes. See the subpods description",
    "homepage": "https://github.com/calimarkus/SimpleUIKit",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Markus Emrich": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/calimarkus/SimpleUIKit.git",
        "tag": "1.0.3"
    },
    "subspecs": [
        {
            "name": "SimpleActivityView",
            "source_files": "SimpleUIKit/SimpleActivityView/*.{h,m}"
        },
        {
            "name": "SimpleAlertController",
            "source_files": "SimpleUIKit/SimpleAlertController/*.{h,m}"
        },
        {
            "name": "SimpleAttributedString",
            "source_files": "SimpleUIKit/SimpleAttributedString/*.{h,m}"
        },
        {
            "name": "SimpleLocalNotification",
            "source_files": "SimpleUIKit/SimpleLocalNotification/*.{h,m}"
        },
        {
            "name": "SimpleMotionEffects",
            "source_files": "SimpleUIKit/SimpleMotionEffects/*.{h,m}"
        },
        {
            "name": "SimplePositioning",
            "source_files": "SimpleUIKit/SimplePositioning/*.{h,m}"
        },
        {
            "name": "SimpleTableView",
            "source_files": "SimpleUIKit/SimpleTableView/*.{h,m}"
        }
    ]
}

Pin It on Pinterest

Share This