TAILIEUCHUNG - Lập trình ứng dụng cho iPhone part 11

Using Xcode Bây giờ bạn đã học được một chút thông tin về các mảnh ghép cần thiết để xây dựng một chương trình SDK, bạn đã sẵn sàng để bắt đầu lập trình. Mục đích chính của chương này là để chỉ cho bạn cách Xcode, môi trường phát triển chính của SDK, các công trình. Qua một Hello truyền thống, thế giới! chương trình, chúng tôi sẽ xem xét các phần của một chương trình SDK tiêu chuẩn | Using Xcode This chapter covers Learning how Xcode works Writing a simple Hello World program Creating new classes Now that you ve learned a bit about the puzzle pieces needed to build an SDK program you re ready to start programming. The main purpose of this chapter is to show you how Xcode the SDK s main development environment works. Via a traditional Hello World program we ll look at the parts of a standard SDK program. We ll also examine how to create new classes of objects and with that under our belt we ll finish up by looking at some of Xcode s most interesting features. Introducing Xcode Apple programming begins with Xcode an integrated development environment IDE that you can call up from the Developer directory. To write iPhone programs you must have downloaded the iPhone SDK as discussed in the previous chapter. Once you ve done that choosing File New Project will get you started. You ll immediately be asked to select a template for your new project. The template you choose will fill your project with default frameworks default files default objects and even default code. As you ll see it ll be a great help in 190 Introducing Xcode 191 jump-starting your own coding. For your first program we want to go with the simplest template we can find Window-Based Application. Once you ve selected a template you ll also need to name your project and choose where to save it but after you re done with that you re ready to start coding. Before we get there however let s take a closer look at how the Xcode environment works. The anatomy of Xcode When called up Xcode displays just one window. Figure shows what it looks like for our first example project helloworldxc. As you can see in figure Xcode s main project window includes three parts. Off to the left is a sidebar that contains a listing of all the files that are being used in your project organized by type. Whenever you need to add frameworks images databases or other files to your projects

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.