TAILIEUCHUNG - Lập trình Wrox Professional Xcode 3 cho Mac OS part 32

Nếu dự án của bạn đã có thư mục lproj (vì khác fi les đã được bản địa hoá)., Bạn có thể lưu mới của bạn fi le trực tiếp vào thư mục lproj. Của ngôn ngữ thích hợp. Xcode xử lý các tài liệu ngòi như thể nó đã được bản địa hóa. Bạn có thể bỏ qua bước của địa phương hóa các tập tin, và nhảy ngay đến việc thêm địa phương hóa mới. | Creating Objects 243 2. Save the file in the project folder and let Interface Builder add it to the project. 3. Close the nib document in Interface Builder. 4. Localize the nib document in Xcode as described in the Localizing Files section of Chapter 6. TIP TO REMEMBER If your project already has . Iproj folders because other files have been localized you can save your new file directly into the . Iproj folder of the appropriate language. Xcode treats the nib document as if it has already been localized. You can skip the step of localizing the file and jump right to adding new localizations. OPENING SISTER LOCALIZATIONS In addition to the obvious ways of opening a nib document opening it from Xcode or the Finder the File Open command or the File Open Recent menu Interface Builder has a shortcut for opening other localizations of the same file. The File Open Localization menu lists all of the other language variants of the currently active nib document. Interface Builder detects when a nib document is located in an . Iproj localization folder. It then finds all sister . Iproj folders containing the same document and adds them to this submenu. This allows you to quickly switch between localizations of the same file. The Open All command opens all localizations at once. CREATING OBJECTS The first C of Interface Builder is creating objects. Objects are easy to create drag an object from the library palette into your nib document or view window. Creating an object is as easy as dragging an instance out of the library item and dropping it into your nib document window as shown in the middle in Figure 13-11. You can also drop a view object directly into a view window as shown on the left in Figure 13-11 as long as it s an object appropriate for that view. Download at 244 CHAPTER 13 INTERFACE BUILDER FIGURE 13-11 Using either technique subview objects can be inserted directly into the view hierarchy. When dropping into the nib document window drop the .

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.