![]() ![]() You’ll begin with a simple drawing feature whereby you can swipe your finger on the screen to draw simple black lines. In order to let your inner artist shine, you’ll need to add some code! Being Quick on the Draw ![]() The View Controller window has the actions and outlets set as you’d expect: Each button at the top has an action, the pencil colors all link to the same action - they have different tags set to tell them apart - and there are outlets for the two image views. You’ll use these to select predefined colors.įinally, there are two image views called MainImageView and TempImageView - you’ll see later why you need two image views when you use them to allow users to draw with different brush opacity levels. ![]() On the bottom, you can see more buttons with pencil images and an eraser. As the titles suggest, you will use these to reset or share a drawing and to bring up a Settings screen. The initial ViewController scene has three buttons on the top. Open Main.storyboard and look at the interface. The whole project is based on the Single View Application template. You have all the needed images in the asset catalog and the main view of the app with all needed constraints set. As you can see, not much work has been done for you. Start Xcode, open the starter project and have a look at the files inside. ![]() Use the Download Materials button at the top or bottom of this tutorial to download the starter project. Grab your pencils and get started no need to make this introduction too drawn out! :] Getting Started
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |