SimpleUIKit 1.0.7

SimpleUIKit 1.0.7

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2020

Maintained by Markus Emrich.



  • By
  • Markus Emrich

SimpleUIKit

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;