![]() The first one to change is the "Name" property.Ĭlick in the field next to Name and change its text from "ImageView" to something more descriptive, such as "CatImage". As you can see, an ImageVIew has several property values that you can change. For example, a property of the sky is that it is blue. A property is a specific detail about something. This displays the "properties" for the ImageView on the right side in what is called the Inspector. So you should rename them.Ĭlick onthe ImageView in the layout and then in the toolbar at the top of the window, click the Inspector button. The ImageView and the Button you added to the layout were just given default names of ImageView1 and Button1, which is not all that descriptive and certainly doesn't make their purpose clear. When writing code, it is helpful to have descriptive names for things sothat your code makes more sense when you read it. ![]() Now you need to clean up the layout a bit to prepare for writing code later. Place the button near the bottom of the layout and center it. Now you can drag a button from the Library onto the layout. Place the ImageView near the top of the area and resize it so that it uses about 3/4 of the space. You'll only need two controls: an ImageView and a Button.įirst, find the ImageView in the Library (on the right) and drag it onto the View in the center. Since this is your first app, it is pretty simple. You'll drag controls from the Library area on the right onto the layout area in the center. This is where you will design the layout (aka user interface or UI) for you app. In the Workspace, View1is selected by default. This displays the Xojo main Workspace where you will create your app. Start Xojo and in the Project Chooser window that appears click on iOS and in the Application Name field, enter the name for you app ("CatsUp") and click OK. After that you can quit Xcode you will not need it again. After Xcode is installed, you'll need to run it once to accept its license agreement and allow it to finish the installation. Xojo (the free version works for this tutorial) Xcode (for the iOS Simulator, which is part of the installation)ĭownload and install Xojo and then download and install Xcode from the App Store. To get started, you'll needthe following: A Mac with OS X 10.7 or later. In this tutorial, you'll learn how to create an iOS app that displays random cat pictures, which I call "Catsup". At Xojo, we are again participating in this wonderful way to help people learn to program. Anyone, anywhere can participatein Hour of Code, fromages 4 to 104. It'stime again for Hour of Code !The Hour of Code is a global movement reaching tens of millions of students in 180+ countries.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |