Skip to content
Permalink
Browse files

Initial commit.

  • Loading branch information...
ruslanskorb committed Aug 24, 2014
0 parents commit 140922484d475d9f2548232889b92b0cc796cb19
Showing with 2,281 additions and 0 deletions.
  1. +36 −0 .gitignore
  2. +518 −0 Example/RSKImageCropperExample.xcodeproj/project.pbxproj
  3. +7 −0 Example/RSKImageCropperExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  4. +53 −0 Example/RSKImageCropperExample/Images.xcassets/AppIcon.appiconset/Contents.json
  5. +51 −0 Example/RSKImageCropperExample/Images.xcassets/LaunchImage.launchimage/Contents.json
  6. +17 −0 Example/RSKImageCropperExample/Images.xcassets/photo.imageset/Contents.json
  7. BIN Example/RSKImageCropperExample/Images.xcassets/photo.imageset/photo.png
  8. +31 −0 Example/RSKImageCropperExample/RSKAppDelegate.h
  9. +43 −0 Example/RSKImageCropperExample/RSKAppDelegate.m
  10. +29 −0 Example/RSKImageCropperExample/RSKExampleViewController.h
  11. +169 −0 Example/RSKImageCropperExample/RSKExampleViewController.m
  12. +47 −0 Example/RSKImageCropperExample/RSKImageCropperExample-Info.plist
  13. +16 −0 Example/RSKImageCropperExample/RSKImageCropperExample-Prefix.pch
  14. +2 −0 Example/RSKImageCropperExample/en.lproj/InfoPlist.strings
  15. +34 −0 Example/RSKImageCropperExample/main.m
  16. +22 −0 Example/RSKImageCropperExampleTests/RSKImageCropperExampleTests-Info.plist
  17. +50 −0 Example/RSKImageCropperExampleTests/RSKPhotoCropperExampleTests.m
  18. +2 −0 Example/RSKImageCropperExampleTests/en.lproj/InfoPlist.strings
  19. +19 −0 LICENSE
  20. +85 −0 README.md
  21. +13 −0 RSKImageCropper.podspec
  22. +75 −0 RSKImageCropper/RSKImageCropViewController.h
  23. +405 −0 RSKImageCropper/RSKImageCropViewController.m
  24. +29 −0 RSKImageCropper/RSKImageCropper.h
  25. +56 −0 RSKImageCropper/RSKImageScrollView.h
  26. +262 −0 RSKImageCropper/RSKImageScrollView.m
  27. +31 −0 RSKImageCropper/RSKTouchView.h
  28. +37 −0 RSKImageCropper/RSKTouchView.m
  29. +31 −0 RSKImageCropper/UIImage+FixOrientation.h
  30. +111 −0 RSKImageCropper/UIImage+FixOrientation.m
  31. BIN Screenshot.png
@@ -0,0 +1,36 @@
# OS X
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Pods/

# SpriteBuilder
#
SpriteBuilder Resources/
*.approj
*.ccbproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1,53 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
@@ -0,0 +1,51 @@
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"subtype" : "retina4",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
@@ -0,0 +1,17 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "photo.png"
},
{
"idiom" : "universal",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Binary file not shown.
@@ -0,0 +1,31 @@
//
// RSKAppDelegate.h
//
// Copyright (c) 2014 Ruslan Skorb, http://lnkd.in/gsBbvb
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//

#import <UIKit/UIKit.h>

@interface RSKAppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end
@@ -0,0 +1,43 @@
//
// RSKAppDelegate.m
//
// Copyright (c) 2014 Ruslan Skorb, http://lnkd.in/gsBbvb
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//

#import "RSKAppDelegate.h"
#import "RSKExampleViewController.h"

@implementation RSKAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

RSKExampleViewController *sampleVC = [[RSKExampleViewController alloc] init];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:sampleVC];
self.window.rootViewController = navController;

self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}

@end
@@ -0,0 +1,29 @@
//
// RSKExampleViewController.h
//
// Copyright (c) 2014 Ruslan Skorb, http://lnkd.in/gsBbvb
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//

#import <UIKit/UIKit.h>

@interface RSKExampleViewController : UIViewController

@end

0 comments on commit 1409224

Please sign in to comment.
You can’t perform that action at this time.