This is a collection of a few UIKit API's simplified. Also see the includled Example Project on how to use all the APIs.
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
}];
A simplified API to schedule local notifications. Example:
[[SimpleLocalNotification sharedInstance] scheduleLocalNotificationWithAlertBody:@"Notification Text"
timeIntervalFromNow:60*5 // in 5 minutes
uniqueIdentifier:@"001"
completion:nil];
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
}];
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"];
A simplified API to add motion effects to your views. Example:
[view addMotionEffectWithMovement:CGPointMake(100, 100)];
A simple API to modify NSMutableAttributedString instances. Example:
[mutableString setFont:[UIFont boldSystemFontOfSize:textSize]
color:[UIColor orangeColor]
forRangeOfString:@"Judy Hopps"];
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;