Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[iOS] Some UIKit APIs simplified

License

NotificationsYou must be signed in to change notification settings

calimarkus/SimpleUIKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

SimpleLocalNotification

A simplified API to schedule local notifications. Example:

[[SimpleLocalNotificationsharedInstance]scheduleLocalNotificationWithAlertBody:@"Notification Text"timeIntervalFromNow:60*5// in 5 minutesuniqueIdentifier:@"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'saction are in close proximity, which makes it very readable.It's also super easy to move rows between rows etc. without spendingthoughts on indexPath's etc.'

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

[STVRowrowWithCellReuseIdentifier:reuseIdentifiertitle:@"Cell Title"subtitle:nilconfigureCellBlock:nildidSelectBlock:^(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:

[UIAlertControllerpresentFromViewController:viewControllerwithTitle:@"Alert Title"message:@"Alert Message"confirmationButtonTitle:@"Ok"];

SimpleMotionEffects

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

[viewaddMotionEffectWithMovement:CGPointMake(100,100)];

Read more

SimpleAttributedString

A simple API to modify NSMutableAttributedString instances. Example:

[mutableStringsetFont:[UIFontboldSystemFontOfSize:textSize]color:[UIColororangeColor]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;

About

[iOS] Some UIKit APIs simplified

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp