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

Using Interface Builder Trong chương cuối cùng, bạn xây dựng một lớp học labeledwebview đó bao gồm cả một nhãn và xem một trang web. Như thường là trường hợp với thiết kế chương trình, bạn phải số crunch để đảm bảo tất cả các đối tượng phù hợp một cách chính xác trên màn hình. Điều gì nếu bạn không phải làm điều đó? Điều gì nếu bạn có thể đặt ra các đối tượng sử dụng một chương trình thiết kế đồ họa và sau đó ngay lập tức bắt đầu sử dụng chúng trong Xcode?. | Using Interface Builder This chapter covers Learning how Interface Builder works Writing a simple program using the interface Linking Interface Builder and Xcode In the last chapter you built a labeledwebview class that included both a label and a web view. As is typically the case with programmatic design you had to crunch numbers to make sure all your objects fit correctly on the screen. What if you didn t have to do that What if you could lay out objects using a graphical design program and then immediately start using them in Xcode With the SDK you can thanks to Interface Builder. As we write this Apple doesn t offer any extensive iPhone Interface Builder documentation. The Interface Builder User Guide contains some good information but it s still more desktop-centric than we d like. If you need more information than we provide here you might still want to read that document because it does have some iPhone specifics. Because we consider Interface Builder to be an alternative to Xcode in appropriate situations our exploration of it will mirror the structure of last chapter s look at Xcode. We ll give an overview of the program and then we ll put together a 206 An introduction to Interface Builder 207 simple first project using it. Afterward we ll explore a more complex but fundamental technology connecting Interface Builder to Xcode. Finally we ll briefly touch upon other functionality. With all that said what exactly is Interface Builder and how does it work An introduction to Interface Builder Interface Builder is a graphical development environment integrally tied in to Xcode. Whenever you write an Xcode project it includes an .xib file that contains Interface Builder definitions for where graphical objects are placed. Each of the different Xcode templates comes with different objects prebuilt this way. Some of them have multiple linked .xib files with one file representing each separate screen of information. We ll get into the specifics of how the two

Đã 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.