TAILIEUCHUNG - Thủ thuật lập trình cho iPhone part 2

Bài này hướng dẫn cách xây dựng một ứng dụng "Hello world" bằng cách kéo thả trong interface builder của XCode. Trong bài này các bạn sẽ được học về: - Create a New View Based Project (Tạo một project với đối tượng được khởi tạo ban đầu | Bài 3 Beginner Interface Builder Hello World Bài này hướng dẫn cách xây dựng một ứng dụng Hello world bằng cách kéo thả trong interface builder của XCode. T rong bài này các bạn sẽ được học về - Create a New View Based Project Tạo một project với đối tượng được khởi tạo ban đầu là UIView - Opening the iPhone Simulator - Adding UI Elements to your home screen - Executing the code Cách thực thi chương trình In my last tutorial UITableView Hello World I said that there are many ways to write a Hello World tutorial for the iPhone. Here is one using Interface Builder. Last time I demonstrated a simple way to populate one cell in a UlTableView with some text. Today s tutorial is even simpler. I will show you how to work with Interface Builder to create a simple layout for you application. In fact you won t write any code at all In my next tutorial I will detail how to interface with your UI components in code. In this tutorial you will learn Create a New View Based Project Opening the iPhone Simulator Adding UI Elements to your home screen Executing the code Create a New View Based Project Let s start by opening up XCode and Creating a new View-Based Application. Do this by clicking on File New Project. Make sure that Application is highlighted under iPhone OS and select View-Based Application. Name this project HelloWorldViews. Collection By traibingo 9 9 So at this point Apple has added some default files to get us started. They have added the main window for us to edit along with the code to launch the window. Now in iPhone terms each window is called a View. Since you can only see one view at a time you will need to create a new view for each screen in your application. In this tutorial we will be sticking to editing the view Apple has provided us. In later tutorials I will go into how to add new views and transition between them. Go ahead and click Build and Go. Opening the iPhone Simulator The program should compile and launch the iPhone Simululator. Your screen .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.