├── 字符串轨迹转BezierPath.gif ├── 字符串转换为UIBezierPath实现动态写字效果 ├── pencil.png ├── ViewController.h ├── AppDelegate.h ├── main.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── AppDelegate.m └── ViewController.m ├── README.md └── 字符串转换为UIBezierPath实现动态写字效果.xcodeproj ├── project.xcworkspace ├── xcuserdata │ └── long.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── contents.xcworkspacedata ├── xcuserdata └── long.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── xcschememanagement.plist │ └── 字符串转换为UIBezierPath实现动态写字效果.xcscheme └── project.pbxproj /字符串轨迹转BezierPath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/longitachi/WritingEffect/HEAD/字符串轨迹转BezierPath.gif -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果/pencil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/longitachi/WritingEffect/HEAD/字符串转换为UIBezierPath实现动态写字效果/pencil.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WritingEffect 2 | 将字符串转换为UIBezierPath,并通过CAShapeLayer及layer动画实现动态书写效果 3 | 4 | ###效果图 5 | ![image](https://github.com/longitachi/WritingEffect/blob/master/字符串轨迹转BezierPath.gif) 6 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果.xcodeproj/project.xcworkspace/xcuserdata/long.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/longitachi/WritingEffect/HEAD/字符串转换为UIBezierPath实现动态写字效果.xcodeproj/project.xcworkspace/xcuserdata/long.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // 字符串转换为UIBezierPath实现动态写字效果 4 | // 5 | // Created by long on 16/2/24. 6 | // Copyright © 2016年 long. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // 字符串转换为UIBezierPath实现动态写字效果 4 | // 5 | // Created by long on 16/2/24. 6 | // Copyright © 2016年 long. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // 字符串转换为UIBezierPath实现动态写字效果 4 | // 5 | // Created by long on 16/2/24. 6 | // Copyright © 2016年 long. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果.xcodeproj/xcuserdata/long.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果.xcodeproj/xcuserdata/long.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | 字符串转换为UIBezierPath实现动态写字效果.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | FD202C3F1C7D420800E3556C 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // 字符串转换为UIBezierPath实现动态写字效果 4 | // 5 | // Created by long on 16/2/24. 6 | // Copyright © 2016年 long. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果.xcodeproj/xcuserdata/long.xcuserdatad/xcschemes/字符串转换为UIBezierPath实现动态写字效果.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // 字符串转换为UIBezierPath实现动态写字效果 4 | // 5 | // Created by long on 16/2/24. 6 | // Copyright © 2016年 long. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import 11 | 12 | @interface ViewController () 13 | 14 | @property (weak, nonatomic) IBOutlet UITextField *textField; 15 | @property (weak, nonatomic) IBOutlet UIButton *btnStart; 16 | @property (weak, nonatomic) IBOutlet UIView *displayView; 17 | 18 | @end 19 | 20 | @implementation ViewController 21 | 22 | - (void)viewDidLoad { 23 | [super viewDidLoad]; 24 | // Do any additional setup after loading the view, typically from a nib. 25 | } 26 | 27 | #pragma mark - UIButton Action 28 | - (IBAction)btnStartDraw_Click:(id)sender 29 | { 30 | [self.displayView.layer.sublayers makeObjectsPerformSelector:@selector(removeFromSuperlayer)]; 31 | if (self.textField.text.length > 0) { 32 | UIBezierPath *bezierPath = [self transformToBezierPath:self.textField.text]; 33 | 34 | CAShapeLayer *layer = [CAShapeLayer layer]; 35 | layer.bounds = CGPathGetBoundingBox(bezierPath.CGPath); 36 | layer.position = CGPointMake(self.view.bounds.size.width/2, 50); 37 | layer.geometryFlipped = YES; 38 | layer.path = bezierPath.CGPath; 39 | layer.fillColor = [UIColor clearColor].CGColor; 40 | layer.lineWidth = 1; 41 | layer.strokeColor = [UIColor blackColor].CGColor; 42 | CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"strokeEnd"]; 43 | animation.fromValue = @(0); 44 | animation.toValue = @(1); 45 | animation.duration = layer.bounds.size.width/20; 46 | [layer addAnimation:animation forKey:nil]; 47 | [self.displayView.layer addSublayer:layer]; 48 | 49 | 50 | UIImage *penImage = [UIImage imageNamed:@"pencil.png"]; 51 | CALayer *penLayer = [CALayer layer]; 52 | penLayer.contents = (id)penImage.CGImage; 53 | penLayer.anchorPoint = CGPointZero; 54 | penLayer.frame = CGRectMake(0.0f, 0.0f, penImage.size.width, penImage.size.height); 55 | [layer addSublayer:penLayer]; 56 | 57 | CAKeyframeAnimation *penAnimation = [CAKeyframeAnimation animationWithKeyPath:@"position"]; 58 | penAnimation.duration = animation.duration; 59 | penAnimation.path = layer.path; 60 | penAnimation.calculationMode = kCAAnimationPaced; 61 | penAnimation.removedOnCompletion = NO; 62 | penAnimation.fillMode = kCAFillModeForwards; 63 | [penLayer addAnimation:penAnimation forKey:@"position"]; 64 | 65 | [penLayer performSelector:@selector(removeFromSuperlayer) withObject:nil afterDelay:penAnimation.duration+.2]; 66 | } 67 | } 68 | 69 | #pragma mark - UITextFieldDelegate 70 | - (BOOL)textFieldShouldReturn:(UITextField *)textField 71 | { 72 | return [textField resignFirstResponder]; 73 | } 74 | 75 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 76 | { 77 | [self.textField resignFirstResponder]; 78 | } 79 | 80 | - (UIBezierPath *)transformToBezierPath:(NSString *)string 81 | { 82 | CGMutablePathRef paths = CGPathCreateMutable(); 83 | CFStringRef fontNameRef = CFSTR("SnellRoundhand"); 84 | CTFontRef fontRef = CTFontCreateWithName(fontNameRef, 18, nil); 85 | 86 | NSAttributedString *attrString = [[NSAttributedString alloc] initWithString:string attributes:@{(__bridge NSString *)kCTFontAttributeName: (__bridge UIFont *)fontRef}]; 87 | CTLineRef lineRef = CTLineCreateWithAttributedString((CFAttributedStringRef)attrString); 88 | CFArrayRef runArrRef = CTLineGetGlyphRuns(lineRef); 89 | 90 | for (int runIndex = 0; runIndex < CFArrayGetCount(runArrRef); runIndex++) { 91 | const void *run = CFArrayGetValueAtIndex(runArrRef, runIndex); 92 | CTRunRef runb = (CTRunRef)run; 93 | 94 | const void *CTFontName = kCTFontAttributeName; 95 | 96 | const void *runFontC = CFDictionaryGetValue(CTRunGetAttributes(runb), CTFontName); 97 | CTFontRef runFontS = (CTFontRef)runFontC; 98 | 99 | CGFloat width = [UIScreen mainScreen].bounds.size.width; 100 | 101 | int temp = 0; 102 | CGFloat offset = .0; 103 | 104 | for (int i = 0; i < CTRunGetGlyphCount(runb); i++) { 105 | CFRange range = CFRangeMake(i, 1); 106 | CGGlyph glyph = 0; 107 | CTRunGetGlyphs(runb, range, &glyph); 108 | CGPoint position = CGPointZero; 109 | CTRunGetPositions(runb, range, &position); 110 | 111 | CGFloat temp3 = position.x; 112 | int temp2 = (int)temp3/width; 113 | CGFloat temp1 = 0; 114 | 115 | if (temp2 > temp1) { 116 | temp = temp2; 117 | offset = position.x - (CGFloat)temp; 118 | } 119 | 120 | CGPathRef path = CTFontCreatePathForGlyph(runFontS, glyph, nil); 121 | CGFloat x = position.x - (CGFloat)temp*width - offset; 122 | CGFloat y = position.y - (CGFloat)temp * 80; 123 | CGAffineTransform transform = CGAffineTransformMakeTranslation(x, y); 124 | CGPathAddPath(paths, &transform, path); 125 | 126 | CGPathRelease(path); 127 | } 128 | CFRelease(runb); 129 | CFRelease(runFontS); 130 | } 131 | 132 | UIBezierPath *bezierPath = [UIBezierPath bezierPath]; 133 | [bezierPath moveToPoint:CGPointZero]; 134 | [bezierPath appendPath:[UIBezierPath bezierPathWithCGPath:paths]]; 135 | 136 | CGPathRelease(paths); 137 | CFRelease(fontNameRef); 138 | CFRelease(fontRef); 139 | 140 | return bezierPath; 141 | } 142 | 143 | - (void)didReceiveMemoryWarning { 144 | [super didReceiveMemoryWarning]; 145 | // Dispose of any resources that can be recreated. 146 | } 147 | 148 | @end 149 | -------------------------------------------------------------------------------- /字符串转换为UIBezierPath实现动态写字效果.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | FD202C451C7D420800E3556C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = FD202C441C7D420800E3556C /* main.m */; }; 11 | FD202C481C7D420800E3556C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = FD202C471C7D420800E3556C /* AppDelegate.m */; }; 12 | FD202C4B1C7D420800E3556C /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FD202C4A1C7D420800E3556C /* ViewController.m */; }; 13 | FD202C4E1C7D420800E3556C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FD202C4C1C7D420800E3556C /* Main.storyboard */; }; 14 | FD202C501C7D420800E3556C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FD202C4F1C7D420800E3556C /* Assets.xcassets */; }; 15 | FD202C531C7D420800E3556C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FD202C511C7D420800E3556C /* LaunchScreen.storyboard */; }; 16 | FD202C5B1C7D5F2300E3556C /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD202C5A1C7D5F2300E3556C /* CoreText.framework */; }; 17 | FD2EFD521C7FE9B000401BED /* pencil.png in Resources */ = {isa = PBXBuildFile; fileRef = FD2EFD511C7FE9B000401BED /* pencil.png */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | FD202C401C7D420800E3556C /* 字符串转换为UIBezierPath实现动态写字效果.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "字符串转换为UIBezierPath实现动态写字效果.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | FD202C441C7D420800E3556C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 23 | FD202C461C7D420800E3556C /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 24 | FD202C471C7D420800E3556C /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 25 | FD202C491C7D420800E3556C /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 26 | FD202C4A1C7D420800E3556C /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 27 | FD202C4D1C7D420800E3556C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 28 | FD202C4F1C7D420800E3556C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 29 | FD202C521C7D420800E3556C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 30 | FD202C541C7D420800E3556C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 31 | FD202C5A1C7D5F2300E3556C /* CoreText.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreText.framework; path = System/Library/Frameworks/CoreText.framework; sourceTree = SDKROOT; }; 32 | FD2EFD511C7FE9B000401BED /* pencil.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pencil.png; sourceTree = ""; }; 33 | /* End PBXFileReference section */ 34 | 35 | /* Begin PBXFrameworksBuildPhase section */ 36 | FD202C3D1C7D420800E3556C /* Frameworks */ = { 37 | isa = PBXFrameworksBuildPhase; 38 | buildActionMask = 2147483647; 39 | files = ( 40 | FD202C5B1C7D5F2300E3556C /* CoreText.framework in Frameworks */, 41 | ); 42 | runOnlyForDeploymentPostprocessing = 0; 43 | }; 44 | /* End PBXFrameworksBuildPhase section */ 45 | 46 | /* Begin PBXGroup section */ 47 | FD202C371C7D420800E3556C = { 48 | isa = PBXGroup; 49 | children = ( 50 | FD202C5A1C7D5F2300E3556C /* CoreText.framework */, 51 | FD202C421C7D420800E3556C /* 字符串转换为UIBezierPath实现动态写字效果 */, 52 | FD202C411C7D420800E3556C /* Products */, 53 | ); 54 | sourceTree = ""; 55 | }; 56 | FD202C411C7D420800E3556C /* Products */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | FD202C401C7D420800E3556C /* 字符串转换为UIBezierPath实现动态写字效果.app */, 60 | ); 61 | name = Products; 62 | sourceTree = ""; 63 | }; 64 | FD202C421C7D420800E3556C /* 字符串转换为UIBezierPath实现动态写字效果 */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | FD202C461C7D420800E3556C /* AppDelegate.h */, 68 | FD202C471C7D420800E3556C /* AppDelegate.m */, 69 | FD202C491C7D420800E3556C /* ViewController.h */, 70 | FD202C4A1C7D420800E3556C /* ViewController.m */, 71 | FD2EFD511C7FE9B000401BED /* pencil.png */, 72 | FD202C4C1C7D420800E3556C /* Main.storyboard */, 73 | FD202C4F1C7D420800E3556C /* Assets.xcassets */, 74 | FD202C511C7D420800E3556C /* LaunchScreen.storyboard */, 75 | FD202C541C7D420800E3556C /* Info.plist */, 76 | FD202C431C7D420800E3556C /* Supporting Files */, 77 | ); 78 | path = "字符串转换为UIBezierPath实现动态写字效果"; 79 | sourceTree = ""; 80 | }; 81 | FD202C431C7D420800E3556C /* Supporting Files */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | FD202C441C7D420800E3556C /* main.m */, 85 | ); 86 | name = "Supporting Files"; 87 | sourceTree = ""; 88 | }; 89 | /* End PBXGroup section */ 90 | 91 | /* Begin PBXNativeTarget section */ 92 | FD202C3F1C7D420800E3556C /* 字符串转换为UIBezierPath实现动态写字效果 */ = { 93 | isa = PBXNativeTarget; 94 | buildConfigurationList = FD202C571C7D420800E3556C /* Build configuration list for PBXNativeTarget "字符串转换为UIBezierPath实现动态写字效果" */; 95 | buildPhases = ( 96 | FD202C3C1C7D420800E3556C /* Sources */, 97 | FD202C3D1C7D420800E3556C /* Frameworks */, 98 | FD202C3E1C7D420800E3556C /* Resources */, 99 | ); 100 | buildRules = ( 101 | ); 102 | dependencies = ( 103 | ); 104 | name = "字符串转换为UIBezierPath实现动态写字效果"; 105 | productName = "字符串转换为UIBezierPath实现动态写字效果"; 106 | productReference = FD202C401C7D420800E3556C /* 字符串转换为UIBezierPath实现动态写字效果.app */; 107 | productType = "com.apple.product-type.application"; 108 | }; 109 | /* End PBXNativeTarget section */ 110 | 111 | /* Begin PBXProject section */ 112 | FD202C381C7D420800E3556C /* Project object */ = { 113 | isa = PBXProject; 114 | attributes = { 115 | LastUpgradeCheck = 0720; 116 | ORGANIZATIONNAME = long; 117 | TargetAttributes = { 118 | FD202C3F1C7D420800E3556C = { 119 | CreatedOnToolsVersion = 7.2; 120 | }; 121 | }; 122 | }; 123 | buildConfigurationList = FD202C3B1C7D420800E3556C /* Build configuration list for PBXProject "字符串转换为UIBezierPath实现动态写字效果" */; 124 | compatibilityVersion = "Xcode 3.2"; 125 | developmentRegion = English; 126 | hasScannedForEncodings = 0; 127 | knownRegions = ( 128 | en, 129 | Base, 130 | ); 131 | mainGroup = FD202C371C7D420800E3556C; 132 | productRefGroup = FD202C411C7D420800E3556C /* Products */; 133 | projectDirPath = ""; 134 | projectRoot = ""; 135 | targets = ( 136 | FD202C3F1C7D420800E3556C /* 字符串转换为UIBezierPath实现动态写字效果 */, 137 | ); 138 | }; 139 | /* End PBXProject section */ 140 | 141 | /* Begin PBXResourcesBuildPhase section */ 142 | FD202C3E1C7D420800E3556C /* Resources */ = { 143 | isa = PBXResourcesBuildPhase; 144 | buildActionMask = 2147483647; 145 | files = ( 146 | FD2EFD521C7FE9B000401BED /* pencil.png in Resources */, 147 | FD202C531C7D420800E3556C /* LaunchScreen.storyboard in Resources */, 148 | FD202C501C7D420800E3556C /* Assets.xcassets in Resources */, 149 | FD202C4E1C7D420800E3556C /* Main.storyboard in Resources */, 150 | ); 151 | runOnlyForDeploymentPostprocessing = 0; 152 | }; 153 | /* End PBXResourcesBuildPhase section */ 154 | 155 | /* Begin PBXSourcesBuildPhase section */ 156 | FD202C3C1C7D420800E3556C /* Sources */ = { 157 | isa = PBXSourcesBuildPhase; 158 | buildActionMask = 2147483647; 159 | files = ( 160 | FD202C4B1C7D420800E3556C /* ViewController.m in Sources */, 161 | FD202C481C7D420800E3556C /* AppDelegate.m in Sources */, 162 | FD202C451C7D420800E3556C /* main.m in Sources */, 163 | ); 164 | runOnlyForDeploymentPostprocessing = 0; 165 | }; 166 | /* End PBXSourcesBuildPhase section */ 167 | 168 | /* Begin PBXVariantGroup section */ 169 | FD202C4C1C7D420800E3556C /* Main.storyboard */ = { 170 | isa = PBXVariantGroup; 171 | children = ( 172 | FD202C4D1C7D420800E3556C /* Base */, 173 | ); 174 | name = Main.storyboard; 175 | sourceTree = ""; 176 | }; 177 | FD202C511C7D420800E3556C /* LaunchScreen.storyboard */ = { 178 | isa = PBXVariantGroup; 179 | children = ( 180 | FD202C521C7D420800E3556C /* Base */, 181 | ); 182 | name = LaunchScreen.storyboard; 183 | sourceTree = ""; 184 | }; 185 | /* End PBXVariantGroup section */ 186 | 187 | /* Begin XCBuildConfiguration section */ 188 | FD202C551C7D420800E3556C /* Debug */ = { 189 | isa = XCBuildConfiguration; 190 | buildSettings = { 191 | ALWAYS_SEARCH_USER_PATHS = NO; 192 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 193 | CLANG_CXX_LIBRARY = "libc++"; 194 | CLANG_ENABLE_MODULES = YES; 195 | CLANG_ENABLE_OBJC_ARC = YES; 196 | CLANG_WARN_BOOL_CONVERSION = YES; 197 | CLANG_WARN_CONSTANT_CONVERSION = YES; 198 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 199 | CLANG_WARN_EMPTY_BODY = YES; 200 | CLANG_WARN_ENUM_CONVERSION = YES; 201 | CLANG_WARN_INT_CONVERSION = YES; 202 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 203 | CLANG_WARN_UNREACHABLE_CODE = YES; 204 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 205 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 206 | COPY_PHASE_STRIP = NO; 207 | DEBUG_INFORMATION_FORMAT = dwarf; 208 | ENABLE_STRICT_OBJC_MSGSEND = YES; 209 | ENABLE_TESTABILITY = YES; 210 | GCC_C_LANGUAGE_STANDARD = gnu99; 211 | GCC_DYNAMIC_NO_PIC = NO; 212 | GCC_NO_COMMON_BLOCKS = YES; 213 | GCC_OPTIMIZATION_LEVEL = 0; 214 | GCC_PREPROCESSOR_DEFINITIONS = ( 215 | "DEBUG=1", 216 | "$(inherited)", 217 | ); 218 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 219 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 220 | GCC_WARN_UNDECLARED_SELECTOR = YES; 221 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 222 | GCC_WARN_UNUSED_FUNCTION = YES; 223 | GCC_WARN_UNUSED_VARIABLE = YES; 224 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 225 | MTL_ENABLE_DEBUG_INFO = YES; 226 | ONLY_ACTIVE_ARCH = YES; 227 | SDKROOT = iphoneos; 228 | }; 229 | name = Debug; 230 | }; 231 | FD202C561C7D420800E3556C /* Release */ = { 232 | isa = XCBuildConfiguration; 233 | buildSettings = { 234 | ALWAYS_SEARCH_USER_PATHS = NO; 235 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 236 | CLANG_CXX_LIBRARY = "libc++"; 237 | CLANG_ENABLE_MODULES = YES; 238 | CLANG_ENABLE_OBJC_ARC = YES; 239 | CLANG_WARN_BOOL_CONVERSION = YES; 240 | CLANG_WARN_CONSTANT_CONVERSION = YES; 241 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 242 | CLANG_WARN_EMPTY_BODY = YES; 243 | CLANG_WARN_ENUM_CONVERSION = YES; 244 | CLANG_WARN_INT_CONVERSION = YES; 245 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 246 | CLANG_WARN_UNREACHABLE_CODE = YES; 247 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 248 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 249 | COPY_PHASE_STRIP = NO; 250 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 251 | ENABLE_NS_ASSERTIONS = NO; 252 | ENABLE_STRICT_OBJC_MSGSEND = YES; 253 | GCC_C_LANGUAGE_STANDARD = gnu99; 254 | GCC_NO_COMMON_BLOCKS = YES; 255 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 256 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 257 | GCC_WARN_UNDECLARED_SELECTOR = YES; 258 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 259 | GCC_WARN_UNUSED_FUNCTION = YES; 260 | GCC_WARN_UNUSED_VARIABLE = YES; 261 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 262 | MTL_ENABLE_DEBUG_INFO = NO; 263 | SDKROOT = iphoneos; 264 | VALIDATE_PRODUCT = YES; 265 | }; 266 | name = Release; 267 | }; 268 | FD202C581C7D420800E3556C /* Debug */ = { 269 | isa = XCBuildConfiguration; 270 | buildSettings = { 271 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 272 | INFOPLIST_FILE = "字符串转换为UIBezierPath实现动态写字效果/Info.plist"; 273 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 274 | PRODUCT_BUNDLE_IDENTIFIER = "ZL.------UIBezierPath--------"; 275 | PRODUCT_NAME = "$(TARGET_NAME)"; 276 | }; 277 | name = Debug; 278 | }; 279 | FD202C591C7D420800E3556C /* Release */ = { 280 | isa = XCBuildConfiguration; 281 | buildSettings = { 282 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 283 | INFOPLIST_FILE = "字符串转换为UIBezierPath实现动态写字效果/Info.plist"; 284 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 285 | PRODUCT_BUNDLE_IDENTIFIER = "ZL.------UIBezierPath--------"; 286 | PRODUCT_NAME = "$(TARGET_NAME)"; 287 | }; 288 | name = Release; 289 | }; 290 | /* End XCBuildConfiguration section */ 291 | 292 | /* Begin XCConfigurationList section */ 293 | FD202C3B1C7D420800E3556C /* Build configuration list for PBXProject "字符串转换为UIBezierPath实现动态写字效果" */ = { 294 | isa = XCConfigurationList; 295 | buildConfigurations = ( 296 | FD202C551C7D420800E3556C /* Debug */, 297 | FD202C561C7D420800E3556C /* Release */, 298 | ); 299 | defaultConfigurationIsVisible = 0; 300 | defaultConfigurationName = Release; 301 | }; 302 | FD202C571C7D420800E3556C /* Build configuration list for PBXNativeTarget "字符串转换为UIBezierPath实现动态写字效果" */ = { 303 | isa = XCConfigurationList; 304 | buildConfigurations = ( 305 | FD202C581C7D420800E3556C /* Debug */, 306 | FD202C591C7D420800E3556C /* Release */, 307 | ); 308 | defaultConfigurationIsVisible = 0; 309 | defaultConfigurationName = Release; 310 | }; 311 | /* End XCConfigurationList section */ 312 | }; 313 | rootObject = FD202C381C7D420800E3556C /* Project object */; 314 | } 315 | --------------------------------------------------------------------------------