17
HIREVIETNAMESE iPhone Training Lesson 3

HireVietnamese - Lesson 3

  • Upload
    levanly

  • View
    1.759

  • Download
    3

Embed Size (px)

DESCRIPTION

iPhone App Development Tutorial

Citation preview

Page 1: HireVietnamese - Lesson 3

HIREVIETNAMESE

iPhone TrainingLesson 3

Page 2: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Contents

Drawing1

Touch and input2

Example 34

Exercise 35

2

Page 3: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Quartz 2D Quartz 2D is a two dimensional graphics drawing engine that

makes up the bulk of the UIKit Core Graphics Framework. It is a C based application programming interface (API) and as

such is utilized primarily through calls to a range of C functions. Quartz 2D drawing typically takes place on a UIView object.

3

Page 4: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Drawing a line

4

Page 5: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Drawing a line

5

Page 6: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Drawing paths

6

Page 7: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Drawing paths

7

Page 8: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Drawing Rectangle

8

Page 9: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Drawing Rectangle

9

Page 10: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Filling a path with a color

10

Page 11: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Filling a path with a color

11

Page 12: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Drawing an image into Graphic Context

12

Page 13: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Drawing

Filling a path with a color

13

Page 14: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Touch and input

Events touchesBegan:withEvent: touchesEnded:withEvent: touchesMoved:withEvent:

Get all touches on the screen NSSet *allTouches = [event allTouches];

14

Page 15: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Example 3

15

Page 16: HireVietnamese - Lesson 3

HIREVIETNAMESEhttp://www.hirevietnamese.com HIREVIETNAMESE

Exercise 3

16

Page 17: HireVietnamese - Lesson 3

HIREVIETNAMESE