forked from shaojiankui/JKCategories
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jakey
authored and
Jakey
committed
Jul 13, 2015
1 parent
e9aff9e
commit b8befae
Showing
11 changed files
with
149 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ories/Foundation/NSString/NSString+Util.m → ...ories/Foundation/NSString/NSString+Size.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Categories/UIKit/UIPopoverController/UIPopoverController+iPhone.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// UIPopoverController+iPhone.h | ||
// IOS-Categories | ||
// | ||
// Created by Jakey on 15/7/12. | ||
// Copyright © 2015年 www.skyfox.org. All rights reserved. | ||
// | ||
// Runtime implementation to allow UIPopoverController on iPhone apps. | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface UIPopoverController (iPhone) | ||
+ (BOOL)_popoversDisabled; | ||
@end |
15 changes: 15 additions & 0 deletions
15
Categories/UIKit/UIPopoverController/UIPopoverController+iPhone.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// UIPopoverController+iPhone.m | ||
// IOS-Categories | ||
// | ||
// Created by Jakey on 15/7/12. | ||
// Copyright © 2015年 www.skyfox.org. All rights reserved. | ||
// | ||
|
||
#import "UIPopoverController+iPhone.h" | ||
|
||
@implementation UIPopoverController (iPhone) | ||
+ (BOOL)_popoversDisabled { | ||
return NO; | ||
} | ||
@end |
13 changes: 13 additions & 0 deletions
13
Demos/UIKit/UIPopoverController/UIPopoverControllerDemoViewController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// UIPopoverControllerDemoViewController.h | ||
// IOS-Categories | ||
// | ||
// Created by Jakey on 15/7/13. | ||
// Copyright © 2015年 www.skyfox.org. All rights reserved. | ||
// | ||
|
||
#import "BaseViewController.h" | ||
|
||
@interface UIPopoverControllerDemoViewController : BaseViewController | ||
|
||
@end |
37 changes: 37 additions & 0 deletions
37
Demos/UIKit/UIPopoverController/UIPopoverControllerDemoViewController.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// UIPopoverControllerDemoViewController.m | ||
// IOS-Categories | ||
// | ||
// Created by Jakey on 15/7/13. | ||
// Copyright © 2015年 www.skyfox.org. All rights reserved. | ||
// | ||
|
||
#import "UIPopoverControllerDemoViewController.h" | ||
|
||
@interface UIPopoverControllerDemoViewController () | ||
|
||
@end | ||
|
||
@implementation UIPopoverControllerDemoViewController | ||
|
||
- (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
19
Demos/UIKit/UIPopoverController/UIPopoverControllerDemoViewController.xib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="UIPopoverControllerDemoViewController"> | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters