LGDrawer

所属分类:其他
开发工具:Objective-C
文件大小:0KB
下载次数:0
上传日期:2015-11-12 16:15:34
上 传 者sh-1993
说明:  iOS助手以编程方式绘制UIImages,
(iOS helper draws UIImages programmatically,)

文件列表:
Demo/ (0, 2015-11-12)
Demo/LGDrawerDemo.xcodeproj/ (0, 2015-11-12)
Demo/LGDrawerDemo.xcodeproj/project.pbxproj (13143, 2015-11-12)
Demo/LGDrawerDemo.xcodeproj/project.xcworkspace/ (0, 2015-11-12)
Demo/LGDrawerDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata (157, 2015-11-12)
Demo/LGDrawerDemo/ (0, 2015-11-12)
Demo/LGDrawerDemo/AppDelegate.h (289, 2015-11-12)
Demo/LGDrawerDemo/AppDelegate.m (2515, 2015-11-12)
Demo/LGDrawerDemo/Base.lproj/ (0, 2015-11-12)
Demo/LGDrawerDemo/Base.lproj/LaunchScreen.xib (3711, 2015-11-12)
Demo/LGDrawerDemo/Base.lproj/Main.storyboard (1575, 2015-11-12)
Demo/LGDrawerDemo/CollectionViewController.h (257, 2015-11-12)
Demo/LGDrawerDemo/CollectionViewController.m (24730, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/ (0, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/AppIcon.appiconset/ (0, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/AppIcon.appiconset/Contents.json (83, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/ (0, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Contents.json (3294, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Launch-Pad-L@1x.png (25781, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Launch-Pad-L@2x.png (37465, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Launch-Pad-P@1x.png (26034, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Launch-Pad-P@2x.png (38399, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Launch-Phone-35-P@1x.png (22780, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Launch-Phone-35-P@2x.png (25279, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Launch-Phone-40-P@2x.png (25959, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Launch-Phone-47-P@2x.png (27294, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Launch-Phone-55-L@3x.png (35062, 2015-11-12)
Demo/LGDrawerDemo/Images.xcassets/LaunchImage.launchimage/Launch-Phone-55-P@3x.png (37255, 2015-11-12)
Demo/LGDrawerDemo/Info.plist (1328, 2015-11-12)
Demo/LGDrawerDemo/LaunchScreen.storyboard (4624, 2015-11-12)
Demo/LGDrawerDemo/NavigationController.h (245, 2015-11-12)
Demo/LGDrawerDemo/NavigationController.m (914, 2015-11-12)
Demo/LGDrawerDemo/main.m (344, 2015-11-12)
Framework/ (0, 2015-11-12)
Framework/LGDrawerFramework.xcodeproj/ (0, 2015-11-12)
Framework/LGDrawerFramework.xcodeproj/project.pbxproj (10677, 2015-11-12)
Framework/LGDrawerFramework.xcodeproj/project.xcworkspace/ (0, 2015-11-12)
Framework/LGDrawerFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata (162, 2015-11-12)
Framework/LGDrawerFramework.xcodeproj/xcshareddata/ (0, 2015-11-12)
... ...

# LGDrawer iOS helper draws UIImages programmatically. It contains collection of different images like rectangle, triangle, ellipse, plus, minus, cross, line, tick, arrow, heart, star and others. You can customize a lot of parameters like size of image area, size of image, background color, fill color, stroke type and color, rotation, shadows and others. Also you can combine different images into one image. ## Preview ## Installation ### With source code [Download repository](https://github.com/Friend-LGA/LGDrawer/archive/master.zip), then add [LGDrawer directory](https://github.com/Friend-LGA/LGDrawer/blob/master/LGDrawer/) to your project. ### With CocoaPods CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. To install with cocoaPods, follow the "Get Started" section on [CocoaPods](https://cocoapods.org/). #### Podfile ```ruby platform :ios, '6.0' pod 'LGDrawer', '~> 1.0.0' ``` ### With Carthage Carthage is a lightweight dependency manager for Swift and Objective-C. It leverages CocoaTouch modules and is less invasive than CocoaPods. To install with carthage, follow the instruction on [Carthage](https://github.com/Carthage/Carthage/). #### Cartfile ``` github "Friend-LGA/LGDrawer" ~> 1.0.0 ``` ## Usage In the source files where you need to use the library, import the header file: ```objective-c #import "LGDrawer.h" ``` ### Draw For example how to draw rectangle: ```objective-c UIImage *rectangle = [LGDrawer drawRectangleWithImageSize:CGSizeMake(90.f, 90.f) size:CGSizeMake(60.f, 60.f) offset:CGPointZero rotate:0.f roundedCorners:UIRectCornerBottomLeft|UIRectCornerTopRight cornerRadius:10.f backgroundColor:[UIColor whiteColor] fillColor:[UIColor blueColor] strokeColor:[UIColor blackColor] strokeThickness:2.f strokeDash:@[@4.f, @2.f] // first - length of line, second - length of space | you can use more arguments in array strokeType:LGDrawerStrokeTypeCenter shadowColor:[UIColor colorWithWhite:0.f alpha:0.5] shadowOffset:CGPointMake(2.f, 2.f) shadowBlur:6.f] ``` ### More For more details try Xcode [Demo project](https://github.com/Friend-LGA/LGDrawer/blob/master/Demo) and see [LGDrawer.h](https://github.com/Friend-LGA/LGDrawer/blob/master/LGDrawer/LGDrawer.h) ## License LGDrawer is released under the MIT license. See [LICENSE](https://raw.githubusercontent.com/Friend-LGA/LGDrawer/master/LICENSE) for details.

近期下载者

相关文件


收藏者