![](https://csdnimg.cn/release/download_crawler_static/7578571/bg13.jpg)
xix
50.8 Implementing the Pinch Recognizer ................................................................................. 447
50.9 Avoiding Image Clipping ................................................................................................... 450
50.10 Testing the Application ................................................................................................... 450
50.11 Summary ........................................................................................................................ 451
51. Drawing iOS 7 2D Graphics with Core Graphics ................................................................. 453
51.1 Introducing Core Graphics and Quartz 2D........................................................................ 453
51.2 The drawRect Method ...................................................................................................... 453
51.3 Points, Coordinates and Pixels ......................................................................................... 454
51.4 The Graphics Context ....................................................................................................... 454
51.5 Working with Colors in Quartz 2D .................................................................................... 455
51.6 Summary .......................................................................................................................... 456
52. An iOS 7 Graphics Tutorial using Core Graphics and Core Image ....................................... 457
52.1 The iOS Drawing Example Application ............................................................................. 457
52.2 Creating the New Project ................................................................................................. 457
52.3 Creating the UIView Subclass ........................................................................................... 457
52.4 Locating the drawRect Method in the UIView Subclass ................................................... 458
52.5 Drawing a Line .................................................................................................................. 459
52.6 Drawing Paths .................................................................................................................. 462
52.7 Drawing a Rectangle ......................................................................................................... 463
52.8 Drawing an Ellipse or Circle .............................................................................................. 464
52.9 Filling a Path with a Color ................................................................................................. 465
52.10 Drawing an Arc ............................................................................................................... 467
52.11 Drawing a Cubic Bézier Curve ......................................................................................... 468
52.12 Drawing a Quadratic Bézier Curve .................................................................................. 469
52.13 Dashed Line Drawing ...................................................................................................... 470
52.14 Drawing Shadows ........................................................................................................... 472
52.15 Drawing Gradients .......................................................................................................... 473
52.16 Drawing an Image into a Graphics Context .................................................................... 478
52.17 Image Filtering with the Core Image Framework ........................................................... 480
52.18 Summary ........................................................................................................................ 482
53. Basic iOS 7 Animation using Core Animation..................................................................... 483
53.1 UIView Core Animation Blocks ......................................................................................... 483
53.2 Understanding Animation Curves .................................................................................... 484
53.3 Receiving Notification of Animation Completion ............................................................. 485
53.4 Performing Affine Transformations.................................................................................. 485
53.5 Combining Transformations ............................................................................................. 486