Skip to content

Commit

Permalink
NSDate+Formatter
Browse files Browse the repository at this point in the history
NSDate+Reporting
NSNumber+Round
NSObject+KVOBlocks
NSString+MIME
NSUserDefaults+SafeAccess
MKMapView+BetterMaps
UIApplication+KeyboardFrame
UIBarButtonItem+Action
UIButton+Submitting
UIControl+ActionBlocks
UIControl+Block
UISplitViewController+QuickAccess
UIView+Constraints
  • Loading branch information
Jakey authored and Jakey committed May 23, 2015
1 parent b882b11 commit c116d90
Show file tree
Hide file tree
Showing 77 changed files with 4,206 additions and 187 deletions.
49 changes: 30 additions & 19 deletions Demos/Controller/RootViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,38 @@ - (void)viewDidLoad {
@"UINavigationBar",
@"UIAlertView",
@"UINavigationItem",
@"UIScreen"
@"UIScreen",
@"UIControl",
@"UIApplication",
@"UIBarButtonItem"

],
@"Foundation":@[@"NSArray",
@"NSBundle",
@"NSData",
@"NSDate",
@"NSDictionary",
@"NSException",
@"NSFileManager",
@"NSObject",
@"NSSet",
@"NSString",
@"NSTimer",
@"NSURL",
@"NSUserDefaults",
@"NSIndexPath",
@"NSManagedObjectContext",
@"NSDateFormatter"

]
@"Foundation":@[@"NSArray",
@"NSBundle",
@"NSData",
@"NSDate",
@"NSDictionary",
@"NSException",
@"NSFileManager",
@"NSObject",
@"NSSet",
@"NSString",
@"NSTimer",
@"NSURL",
@"NSUserDefaults",
@"NSIndexPath",
@"NSManagedObjectContext",
@"NSDateFormatter",
@"NSNumber"

],
@"CoreLocation":@[
@"CLLocation",
@"CLLocationManager"
] ,
@"MapKit":@[
@"MKMapView"
]
};
[self.tableView reloadData];
}
Expand Down
13 changes: 13 additions & 0 deletions Demos/CoreLocation/CLLocation/CLLocationDemoViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// CLLocationDemoViewController.h
// IOS-Categories
//
// Created by Jakey on 15/5/22.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//

#import "BaseViewController.h"

@interface CLLocationDemoViewController : BaseViewController

@end
37 changes: 37 additions & 0 deletions Demos/CoreLocation/CLLocation/CLLocationDemoViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// CLLocationDemoViewController.m
// IOS-Categories
//
// Created by Jakey on 15/5/22.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//

#import "CLLocationDemoViewController.h"

@interface CLLocationDemoViewController ()

@end

@implementation CLLocationDemoViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/

@end
19 changes: 19 additions & 0 deletions Demos/CoreLocation/CLLocation/CLLocationDemoViewController.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="CLLocationDemoViewController">
<connections>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</objects>
</document>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// CLLocationManagerDemoViewController.h
// IOS-Categories
//
// Created by Jakey on 15/5/23.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//

#import "BaseViewController.h"

@interface CLLocationManagerDemoViewController : BaseViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// CLLocationManagerDemoViewController.m
// IOS-Categories
//
// Created by Jakey on 15/5/23.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//

#import "CLLocationManagerDemoViewController.h"

@interface CLLocationManagerDemoViewController ()

@end

@implementation CLLocationManagerDemoViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="CLLocationManagerDemoViewController">
<connections>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</objects>
</document>
2 changes: 1 addition & 1 deletion Demos/Foundation/NSDate/NSDateDemoViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "BaseViewController.h"

#import "NSDate+Reporting.h"
@interface NSDateDemoViewController : BaseViewController

@end
7 changes: 3 additions & 4 deletions Demos/Foundation/NSDate/NSDateDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//

#import "NSDateDemoViewController.h"
#import "NSDate+TimeAgo.h"

@interface NSDateDemoViewController ()

Expand All @@ -18,9 +17,9 @@ @implementation NSDateDemoViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
NSDate *date = [[NSDate alloc] initWithTimeIntervalSince1970:0];
NSString *ago = [date timeAgo];
NSLog(@"Output is: \"%@\"", ago);
NSDate *today = [NSDate firstDayOfCurrentYear];
NSDate *today2 = [[NSDate date] startOfWeek];

}

- (void)didReceiveMemoryWarning {
Expand Down
13 changes: 13 additions & 0 deletions Demos/Foundation/NSNumber/NSNumberDemoViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// NSNumberDemoViewController.h
// IOS-Categories
//
// Created by Jakey on 15/5/23.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//

#import "BaseViewController.h"

@interface NSNumberDemoViewController : BaseViewController

@end
37 changes: 37 additions & 0 deletions Demos/Foundation/NSNumber/NSNumberDemoViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// NSNumberDemoViewController.m
// IOS-Categories
//
// Created by Jakey on 15/5/23.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//

#import "NSNumberDemoViewController.h"

@interface NSNumberDemoViewController ()

@end

@implementation NSNumberDemoViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/

@end
19 changes: 19 additions & 0 deletions Demos/Foundation/NSNumber/NSNumberDemoViewController.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="NSNumberDemoViewController">
<connections>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</objects>
</document>
13 changes: 13 additions & 0 deletions Demos/UIKit/UIApplication/UIApplicationDemoViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// UIApplicationDemoViewController.h
// IOS-Categories
//
// Created by Jakey on 15/5/23.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//

#import "BaseViewController.h"

@interface UIApplicationDemoViewController : BaseViewController

@end
37 changes: 37 additions & 0 deletions Demos/UIKit/UIApplication/UIApplicationDemoViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// UIApplicationDemoViewController.m
// IOS-Categories
//
// Created by Jakey on 15/5/23.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//

#import "UIApplicationDemoViewController.h"

@interface UIApplicationDemoViewController ()

@end

@implementation UIApplicationDemoViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/

@end
19 changes: 19 additions & 0 deletions Demos/UIKit/UIApplication/UIApplicationDemoViewController.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="UIApplicationDemoViewController">
<connections>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</objects>
</document>
13 changes: 13 additions & 0 deletions Demos/UIKit/UIBarButtonItem/UIBarButtonItemDemoViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// UIBarButtonItemDemoViewController.h
// IOS-Categories
//
// Created by Jakey on 15/5/23.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//

#import "BaseViewController.h"

@interface UIBarButtonItemDemoViewController : BaseViewController

@end
Loading

0 comments on commit c116d90

Please sign in to comment.